mirror of https://github.com/Icinga/icinga2.git
parent
14baa4a79b
commit
9b469453a7
|
@ -27,11 +27,12 @@
|
||||||
using namespace icinga;
|
using namespace icinga;
|
||||||
|
|
||||||
HttpRequest::HttpRequest(StreamReadContext& src)
|
HttpRequest::HttpRequest(StreamReadContext& src)
|
||||||
: m_State(HttpRequestStart), m_Context(src),
|
: Complete(false),
|
||||||
m_ChunkContext(m_Context),
|
|
||||||
ProtocolVersion(HttpVersion10),
|
ProtocolVersion(HttpVersion10),
|
||||||
Complete(false),
|
Headers(new Dictionary()),
|
||||||
Headers(new Dictionary())
|
m_Context(src),
|
||||||
|
m_ChunkContext(m_Context),
|
||||||
|
m_State(HttpRequestStart)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
bool HttpRequest::Parse(const Stream::Ptr& stream, StreamReadContext& src, bool may_wait)
|
bool HttpRequest::Parse(const Stream::Ptr& stream, StreamReadContext& src, bool may_wait)
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
using namespace icinga;
|
using namespace icinga;
|
||||||
|
|
||||||
HttpResponse::HttpResponse(const Stream::Ptr& stream, const HttpRequest& request)
|
HttpResponse::HttpResponse(const Stream::Ptr& stream, const HttpRequest& request)
|
||||||
: m_Stream(stream), m_Request(request), m_State(HttpResponseStart)
|
: m_State(HttpResponseStart), m_Request(request), m_Stream(stream)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
void HttpResponse::SetStatus(int code, const String& message)
|
void HttpResponse::SetStatus(int code, const String& message)
|
||||||
|
|
Loading…
Reference in New Issue