29#include "WSServices.h"
30#include <sptk5/wsdl/WSRequest.h>
31#include <sptk5/wsdl/protocol/WSStaticHttpProtocol.h>
32#include <sptk5/wsdl/protocol/WSWebServiceProtocol.h>
33#include <sptk5/wsdl/protocol/WSWebSocketsProtocol.h>
46 String staticFilesDirectory;
49 : htmlIndexPage(std::move(htmlIndexPage))
50 , wsRequestPage(std::move(wsRequestPage))
51 , staticFilesDirectory(std::move(staticFilesDirectory))
60 bool encrypted {
false};
61 bool allowCors {
false};
62 bool keepAlive {
false};
63 bool suppressHttpStatus {
false};
68 , encrypted(encrypted)
99 void respondToOptions(
const HttpHeaders& headers)
const;
101 bool handleHttpProtocol(
const String& requestType,
URL& url,
String& protocolName, HttpHeaders& headers)
const;
103 static bool reviewHeaders(
const String& requestType, HttpHeaders& headers);
108 void processSingleConnection(
bool& done);
Definition: HttpReader.h:49
Definition: TCPServer.h:53
Definition: LogEngine.h:60
A log that sends all the log messages into another log.
Definition: Logger.h:53
Definition: RequestInfo.h:42
Definition: ServerConnection.h:56
Definition: StopWatch.h:37
Definition: TCPServer.h:133
Definition: WSConnection.h:42
Definition: WSConnection.h:39
~WSConnection() override=default
WSConnection(TCPServer &server, SOCKET connectionSocket, const sockaddr_in *connectionAddress, WSServices &services, LogEngine &logEngine, const Options &options)
Definition: WSConnection.h:116
~WSSSLConnection() override=default
WSSSLConnection(TCPServer &server, SOCKET connectionSocket, const sockaddr_in *addr, WSServices &services, LogEngine &logEngine, const Options &options)
Definition: WSServices.h:37
Definition: WSConnection.h:58