Read body in parseRequest for HttpServer (#244)

Co-authored-by: Jay <jasoncarr@Jasons-MacBook-Pro.local>
This commit is contained in:
carr-7
2020-09-12 21:53:56 +01:00
committed by GitHub
parent a4e5d1b47a
commit 72d6651ded
3 changed files with 69 additions and 1 deletions

View File

@ -95,15 +95,18 @@ namespace ix
std::string uri;
std::string method;
std::string version;
std::string body;
WebSocketHttpHeaders headers;
HttpRequest(const std::string& u,
const std::string& m,
const std::string& v,
const std::string& b,
const WebSocketHttpHeaders& h = WebSocketHttpHeaders())
: uri(u)
, method(m)
, version(v)
, body(b)
, headers(h)
{
}