Loading...
Searching...
No Matches
Public Attributes | List of all members
BPrivate::Network::BHttpRequest::Body Struct Reference

Describe the body for a network request. More...

Public Attributes

std::unique_ptr< BDataIOinput
 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.
 

Detailed Description

Describe the body for a network request.

Since
Haiku R1

Member Data Documentation

◆ input

std::unique_ptr< BDataIO > BPrivate::Network::BHttpRequest::Body::input

The BDataIO object that holds the contents of the body.

Since
Haiku R1

◆ mimeType

BString BPrivate::Network::BHttpRequest::Body::mimeType

The mimetype of the body.

The Content-Type header field of the request is set to this value.

Since
Haiku R1

◆ size

std::optional< off_t > BPrivate::Network::BHttpRequest::Body::size

The size of the content, if known.

Since
Haiku R1

◆ startPosition

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.

Since
Haiku R1