Beast Logo

PrevUpHomeNext

http::body_max_size

Body maximum size option.

struct body_max_size
Member Functions

Name

Description

body_max_size

Data Members

Name

Description

value

Sets the maximum number of cumulative bytes allowed including all body octets. Octets in chunk-encoded bodies are counted after decoding. A value of zero indicates no limit on the number of body octets.

The default body maximum size for requests is 4MB (four megabytes or 4,194,304 bytes) and unlimited for responses.

Remarks

Objects of this type are used with basic_parser_v1::set_option.

Requirements

Header: beast/http/basic_parser_v1.hpp

Convenience header: beast/http.hpp


PrevUpHomeNext