Add WITH_PROXY flag

This commit is contained in:
Alex Hultman
2020-06-06 12:59:40 +02:00
parent e70bbb4fb6
commit 2538cd18e9
6 changed files with 128 additions and 54 deletions
+8 -1
View File
@@ -1,5 +1,5 @@
/*
* Authored by Alex Hultman, 2018-2019.
* Authored by Alex Hultman, 2018-2020.
* Intellectual property of third-party.
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -25,6 +25,8 @@
#include "f2/function2.hpp"
#include "ProxyParser.h"
namespace uWS {
template <bool SSL>
@@ -50,6 +52,11 @@ private:
/* Current state (content-length sent, status sent, write called, etc */
int state = 0;
#ifdef WITH_PROXY
// proxy protocol
ProxyParser proxyParser;
#endif
};
}