Describe the body for a network request. More...
Public Attributes | |
std::unique_ptr< BDataIO > | input |
The BDataIO object that holds the contents of the body. | |
BString | mimeType |
The mimetype of the body. | |
std::optional< off_t > | size |
The size of the content, if known. | |
std::optional< off_t > | startPosition |
If the input is a BPositionIO, this is the current position when the body was set. | |
Describe the body for a network request.
std::unique_ptr< BDataIO > BPrivate::Network::BHttpRequest::Body::input |
The BDataIO object that holds the contents of the body.
BString BPrivate::Network::BHttpRequest::Body::mimeType |
The mimetype of the body.
The Content-Type
header field of the request is set to this value.
std::optional< off_t > BPrivate::Network::BHttpRequest::Body::size |
The size of the content, if known.
std::optional< off_t > BPrivate::Network::BHttpRequest::Body::startPosition |
If the input is a BPositionIO, this is the current position when the body was set.
This value is used to rewind the input when it needs to be resubmitted, for example in the case of a redirection.