Sane C++ Libraries
C++ Platform Abstraction Libraries
Loading...
Searching...
No Matches
SC::HttpAsyncClient::RequestOptions Struct Reference

Public Types

enum class  BodyMode : uint8_t {
  None ,
  Span ,
  Stream ,
  Multipart
}
 

Public Member Functions

RequestOptionssetRequest (HttpParser::Method newMethod, StringSpan newURL, bool newKeepAlive=false)
 
RequestOptionssetHeaders (Span< const Header > newHeaders)
 
RequestOptionssetKeepAlive (bool newKeepAlive=true)
 
RequestOptionsclearBody ()
 
RequestOptionssetBody (Span< const char > newBody)
 
RequestOptionssetBody (StringSpan newBody)
 
RequestOptionssetBody (const char *newBody)
 
RequestOptionssetBody (AsyncReadableStream &newBodyStream, uint64_t newBodyLength)
 
RequestOptionssetMultipart (HttpMultipartWriter &newMultipartWriter)
 

Public Attributes

HttpParser::Method method = HttpParser::Method::HttpGET
 
StringSpan url
 
Span< const Headerheaders
 
Span< const char > body
 
AsyncReadableStreambodyStream = nullptr
 
HttpMultipartWritermultipartWriter = nullptr
 
uint64_t bodyLength = 0
 
BodyMode bodyMode = BodyMode::None
 
bool keepAlive = false
 

The documentation for this struct was generated from the following file: