Clean-ups

This commit is contained in:
Alex Hultman
2020-06-04 13:19:25 +02:00
parent df14af9713
commit 9e3a75b19a
4 changed files with 23 additions and 123 deletions
-10
View File
@@ -317,16 +317,6 @@ private:
return this;
}
/* Used by App in its WebSocket handler */
void upgradeToWebSocket(void *newSocket) {
HttpContextData<SSL> *httpContextData = getSocketContextData();
/* We should only mark this if inside the parser; if upgrading "async" we cannot set this */
if (httpContextData->isParsingHttp) {
httpContextData->upgradedWebSocket = newSocket;
}
}
public:
/* Construct a new HttpContext using specified loop */
static HttpContext *create(Loop *loop, us_socket_context_options_t options = {}) {