HTTP server functionality is in there.
This commit is contained in:
@@ -198,7 +198,6 @@ public:
|
||||
HttpChannel htchan;
|
||||
htchan.channel_ = chan;
|
||||
http_server_channels_.push_back(htchan);
|
||||
stdostream() << "Http Server got new client " << chan->chid() << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -258,7 +257,8 @@ public:
|
||||
htchan.parsed_bytes_ = chan->in()->fill();
|
||||
if (parser.complete()) {
|
||||
StreamBuffer *sb = chan->out();
|
||||
sb->ostream() << "HTTP/1.1 200 OK\n\n";
|
||||
HttpServerResponse resp = master_->http_serve(parser);
|
||||
resp.send(sb);
|
||||
htchan.channel_ = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user