Public Types | |
| enum class | BodyMode : uint8_t { None , Span , Stream , Multipart } |
Public Member Functions | |
| RequestOptions & | setRequest (HttpParser::Method newMethod, StringSpan newURL, bool newKeepAlive=false) |
| RequestOptions & | setHeaders (Span< const Header > newHeaders) |
| RequestOptions & | setKeepAlive (bool newKeepAlive=true) |
| RequestOptions & | clearBody () |
| RequestOptions & | setBody (Span< const char > newBody) |
| RequestOptions & | setBody (StringSpan newBody) |
| RequestOptions & | setBody (const char *newBody) |
| RequestOptions & | setBody (AsyncReadableStream &newBodyStream, uint64_t newBodyLength) |
| RequestOptions & | setMultipart (HttpMultipartWriter &newMultipartWriter) |
Public Attributes | |
| HttpParser::Method | method = HttpParser::Method::HttpGET |
| StringSpan | url |
| Span< const Header > | headers |
| Span< const char > | body |
| AsyncReadableStream * | bodyStream = nullptr |
| HttpMultipartWriter * | multipartWriter = nullptr |
| uint64_t | bodyLength = 0 |
| BodyMode | bodyMode = BodyMode::None |
| bool | keepAlive = false |