[#bitcoin_http]
= bitcoin&lowbar;http
:mrdocs:

Constants and error types for the built&hyphen;in HTTP server&apos;s request parsing&period;

== Types

[cols="1,4"]
|===
| Name| Description
| xref:bitcoin_http/ContentTooLargeError.adoc[`ContentTooLargeError`] 
| Thrown when a request body exceeds MAX&lowbar;BODY&lowbar;SIZE (or _will_ exceed, in chunked transfer) so the server can reply with more specific code 413 (content too large) vs general 400 (bad request)
|===


== Variables

[cols="1,4"]
|===
| Name| Description
| xref:bitcoin_http/MAX_BODY_SIZE.adoc[`MAX&lowbar;BODY&lowbar;SIZE`] 
| Maximum size of an HTTP request body
| xref:bitcoin_http/MAX_HEADERS_SIZE.adoc[`MAX&lowbar;HEADERS&lowbar;SIZE`] 
| Maximum size of each headers line in an HTTP request, also the maximum size of all headers total&period; See https&colon;&sol;&sol;github&period;com&sol;bitcoin&sol;bitcoin&sol;pull&sol;6859 And libevent http&period;c evhttp&lowbar;parse&lowbar;headers&lowbar;()
| xref:bitcoin_http/MIN_REQUEST_LINE_LENGTH.adoc[`MIN&lowbar;REQUEST&lowbar;LINE&lowbar;LENGTH`] 
| Shortest valid request line, used by libevent in evhttp&lowbar;parse&lowbar;request&lowbar;line()
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
