HttpConnectionHandler.request_msg_body_length

Tells the request message body length. This method should be overridden when a request message body is expected. It is invoked when the message header is completely parsed. The default behaviour is expecting no request message body.

class HttpConnectionHandler
protected
size_t
request_msg_body_length
()

Return Value

Type: size_t

the request message body length in bytes (0 indicates that no request message body is expected)

Throws

HttpException (use the http_exception member) with status set to - status.RequestEntityTooLarge to reject a request whose message body is too long or - an appropriate status to abort request processing and immediately send the response if the message body length cannot be determined, e.g. because required request header parameters are missing.

Meta