Changeset View
Changeset View
Standalone View
Standalone View
src/httpserver.cpp
// Copyright (c) 2015-2016 The Bitcoin Core developers | // Copyright (c) 2015-2016 The Bitcoin Core developers | ||||
// Copyright (c) 2018 The Bitcoin developers | // Copyright (c) 2018 The Bitcoin developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "httpserver.h" | #include <httpserver.h> | ||||
#include "chainparamsbase.h" | #include <chainparamsbase.h> | ||||
#include "compat.h" | #include <compat.h> | ||||
#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 <sys/stat.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 <sys/stat.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> | ||||
/** 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 631 Lines • Show Last 20 Lines |