missingServerName and updated ServerName example

This commit is contained in:
Alex Hultman
2020-08-17 05:39:54 +02:00
parent 77aced05f8
commit f69282c478
4 changed files with 32 additions and 7 deletions
+3
View File
@@ -31,9 +31,12 @@ template <bool SSL>
struct alignas(16) HttpContextData {
template <bool> friend struct HttpContext;
template <bool> friend struct HttpResponse;
template <bool> friend struct TemplatedApp;
private:
std::vector<fu2::unique_function<void(HttpResponse<SSL> *, int)>> filterHandlers;
fu2::unique_function<void(const char *hostname)> missingServerNameHandler;
struct RouterData {
HttpResponse<SSL> *httpResponse;
HttpRequest *httpRequest;