Changeset View
Changeset View
Standalone View
Standalone View
src/httpserver.cpp
Show All 9 Lines | |||||
#include "config.h" | #include "config.h" | ||||
#include "netbase.h" | #include "netbase.h" | ||||
#include "rpc/protocol.h" // For HTTP status codes | #include "rpc/protocol.h" // For HTTP status codes | ||||
#include "sync.h" | #include "sync.h" | ||||
#include "ui_interface.h" | #include "ui_interface.h" | ||||
#include "util.h" | #include "util.h" | ||||
#include "utilstrencodings.h" | #include "utilstrencodings.h" | ||||
#include <signal.h> | |||||
#include <sys/stat.h> | #include <sys/stat.h> | ||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <event2/buffer.h> | #include <event2/buffer.h> | ||||
#include <event2/bufferevent.h> | #include <event2/bufferevent.h> | ||||
#include <event2/event.h> | #include <event2/event.h> | ||||
#include <event2/http.h> | #include <event2/http.h> | ||||
#include <event2/keyvalq_struct.h> | #include <event2/keyvalq_struct.h> | ||||
#include <event2/thread.h> | #include <event2/thread.h> | ||||
#include <event2/util.h> | #include <event2/util.h> | ||||
#ifdef EVENT__HAVE_NETINET_IN_H | #ifdef EVENT__HAVE_NETINET_IN_H | ||||
#include <netinet/in.h> | #include <netinet/in.h> | ||||
#ifdef _XOPEN_SOURCE_EXTENDED | #ifdef _XOPEN_SOURCE_EXTENDED | ||||
#include <arpa/inet.h> | #include <arpa/inet.h> | ||||
#endif | #endif | ||||
#endif | #endif | ||||
#include <csignal> | |||||
#include <cstdio> | #include <cstdio> | ||||
#include <cstdlib> | #include <cstdlib> | ||||
#include <cstring> | #include <cstring> | ||||
#include <future> | #include <future> | ||||
/** 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; | ||||
▲ Show 20 Lines • Show All 630 Lines • Show Last 20 Lines |