Changeset View
Changeset View
Standalone View
Standalone View
src/httpserver.cpp
Show All 33 Lines | |||||
#include <sys/stat.h> | #include <sys/stat.h> | ||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <csignal> | #include <csignal> | ||||
#include <cstdio> | #include <cstdio> | ||||
#include <cstdlib> | #include <cstdlib> | ||||
#include <cstring> | #include <cstring> | ||||
#include <future> | #include <future> | ||||
#include <memory> | |||||
/** Maximum size of http request (request line + headers) */ | /** Maximum size of http request (request line + headers) */ | ||||
static const size_t MAX_HEADERS_SIZE = 8192; | static const size_t MAX_HEADERS_SIZE = 8192; | ||||
/** | /** | ||||
* Maximum HTTP post body size. Twice the maximum block size is added to this | * Maximum HTTP post body size. Twice the maximum block size is added to this | ||||
* value in practice. | * value in practice. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 649 Lines • Show Last 20 Lines |