Commit 1f609e20 authored by Kenton Varda's avatar Kenton Varda

Fix warnings in http.c++.

parent 9f73e929
...@@ -167,7 +167,7 @@ enum class BuiltinHeaderIndices { ...@@ -167,7 +167,7 @@ enum class BuiltinHeaderIndices {
#undef HEADER_ID #undef HEADER_ID
}; };
static constexpr size_t CONNECTION_HEADER_COUNT = 0 static constexpr size_t CONNECTION_HEADER_COUNT KJ_UNUSED = 0
#define COUNT_HEADER(id, name) + 1 #define COUNT_HEADER(id, name) + 1
KJ_HTTP_FOR_EACH_CONNECTION_HEADER(COUNT_HEADER) KJ_HTTP_FOR_EACH_CONNECTION_HEADER(COUNT_HEADER)
#undef COUNT_HEADER #undef COUNT_HEADER
...@@ -1483,7 +1483,7 @@ private: ...@@ -1483,7 +1483,7 @@ private:
// ======================================================================================= // =======================================================================================
class HttpClientImpl: public HttpClient { class HttpClientImpl final: public HttpClient {
public: public:
HttpClientImpl(HttpHeaderTable& responseHeaderTable, kj::AsyncIoStream& rawStream) HttpClientImpl(HttpHeaderTable& responseHeaderTable, kj::AsyncIoStream& rawStream)
: httpInput(rawStream, responseHeaderTable), : httpInput(rawStream, responseHeaderTable),
...@@ -1587,7 +1587,7 @@ kj::Promise<kj::Own<kj::AsyncIoStream>> HttpService::connect(kj::String host) { ...@@ -1587,7 +1587,7 @@ kj::Promise<kj::Own<kj::AsyncIoStream>> HttpService::connect(kj::String host) {
KJ_UNIMPLEMENTED("CONNECT is not implemented by this HttpService"); KJ_UNIMPLEMENTED("CONNECT is not implemented by this HttpService");
} }
class HttpServer::Connection: private HttpService::Response { class HttpServer::Connection final: private HttpService::Response {
public: public:
Connection(HttpServer& server, kj::AsyncIoStream& stream) Connection(HttpServer& server, kj::AsyncIoStream& stream)
: server(server), : server(server),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment