From 62ac72cad393f1685a3ea64ddf9d4399dc430452 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Sat, 11 Sep 2021 17:29:47 +0200 Subject: Comment fixes, changed thread count args to unsigned --- zenhttp/httpsys.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'zenhttp/httpsys.cpp') diff --git a/zenhttp/httpsys.cpp b/zenhttp/httpsys.cpp index 00ffc51e9..1050bbbb7 100644 --- a/zenhttp/httpsys.cpp +++ b/zenhttp/httpsys.cpp @@ -432,6 +432,13 @@ HttpPayloadReadRequest::HandleCompletion(ULONG IoResult, ULONG_PTR NumberOfBytes ////////////////////////////////////////////////////////////////////////// +/** + * @brief HTTP request response I/O request handler + * + * Asynchronously streams out a response to an HTTP request via compound + * responses from memory or directly from file + */ + class HttpMessageResponseRequest : public HttpSysRequestHandler { public: @@ -507,6 +514,8 @@ HttpMessageResponseRequest::HttpMessageResponseRequest(HttpSysTransaction& InReq : HttpSysRequestHandler(InRequest) { Initialize(ResponseCode, BlobList); + + ZEN_UNUSED(ContentType); } HttpMessageResponseRequest::~HttpMessageResponseRequest() @@ -728,7 +737,7 @@ HttpMessageResponseRequest::IssueRequest() \/ \/ \/ */ -HttpSysServer::HttpSysServer(int ThreadCount) : m_ThreadPool(ThreadCount) +HttpSysServer::HttpSysServer(unsigned int ThreadCount) : m_ThreadPool(ThreadCount) { ULONG Result = HttpInitialize(HTTPAPI_VERSION_2, HTTP_INITIALIZE_SERVER, nullptr); @@ -1327,7 +1336,6 @@ InitialRequestHandler::HandleCompletion(ULONG IoResult, ULONG_PTR NumberOfBytesT if (m_IsInitialRequest) { m_ContentLength = GetContentLength(HttpReq); - HttpVerb Verb = TranslateHttpVerb(HttpReq->Verb); if (m_ContentLength) { -- cgit v1.2.3