File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -473,11 +473,10 @@ class Threads : public TaskQueue {
473
473
474
474
class Server {
475
475
public:
476
- typedef std::function<void (const Request &, Response &)> Handler;
477
- typedef std::function<void (const Request &, Response &,
478
- const ContentReader &content_reader)>
479
- HandlerWithContentReader;
480
- typedef std::function<void (const Request &, const Response &)> Logger;
476
+ using Handler = std::function<void (const Request &, Response &)>;
477
+ using HandlerWithContentReader = std::function<void (const Request &, Response &,
478
+ const ContentReader &content_reader)>;
479
+ using Logger = std::function<void (const Request &, const Response &)>;
481
480
482
481
Server ();
483
482
@@ -576,7 +575,7 @@ class Server {
576
575
577
576
class Client {
578
577
public:
579
- Client (const char *host, int port = 80 , time_t timeout_sec = 300 );
578
+ explicit Client (const char *host, int port = 80 , time_t timeout_sec = 300 );
580
579
581
580
virtual ~Client ();
582
581
You can’t perform that action at this time.
0 commit comments