Bitcoin Core 32.1.0
P2P Digital Currency
Loading...
Searching...
No Matches
bitcoin_http Namespace Reference

Classes

struct  ContentTooLargeError

Variables

constexpr size_t MIN_REQUEST_LINE_LENGTH = std::string_view("GET / HTTP/1.0").size()
 Shortest valid request line, used by libevent in evhttp_parse_request_line().
constexpr size_t MAX_HEADERS_SIZE {8192}
constexpr uint64_t MAX_BODY_SIZE {32_MiB}

Variable Documentation

◆ MAX_BODY_SIZE

uint64_t bitcoin_http::MAX_BODY_SIZE {32_MiB}
inlineconstexpr

Maximum size of an HTTP request body received from a client. Also used to limit data queued for sending back to client.

Definition at line 82 of file httpserver.h.

◆ MAX_HEADERS_SIZE

size_t bitcoin_http::MAX_HEADERS_SIZE {8192}
inlineconstexpr

Maximum size of each headers line in an HTTP request, also the maximum size of all headers total. See https://github.com/bitcoin/bitcoin/pull/6859 And libevent http.c evhttp_parse_headers_()

Definition at line 78 of file httpserver.h.

◆ MIN_REQUEST_LINE_LENGTH

size_t bitcoin_http::MIN_REQUEST_LINE_LENGTH = std::string_view("GET / HTTP/1.0").size()
inlineconstexpr

Shortest valid request line, used by libevent in evhttp_parse_request_line().

Definition at line 72 of file httpserver.h.