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

Configuration for an outgoing HTTP request. More...

#include <HttpClient.h>

Public Types

enum  Method : uint8_t {
  HttpGET ,
  HttpPOST ,
  HttpPUT ,
  HttpHEAD ,
  HttpDELETE ,
  HttpPATCH ,
  HttpOPTIONS
}
 

Public Member Functions

const char * getMethodName () const
 
Result validate () const
 

Static Public Member Functions

static const char * getMethodName (Method method)
 

Public Attributes

Method method = HttpGET
 
StringSpan url
 Full URL including scheme (e.g. "https://example.com/path")
 
Span< const HttpClientHeaderheaders
 
HttpClientRequestBody body
 
HttpClientRequestOptions options
 

Detailed Description

Configuration for an outgoing HTTP request.

All views must remain valid until the operation completes or is cancelled. The request object is copied by value, but referenced header/body/provider storage remains caller-owned.

Member Data Documentation

◆ url

StringSpan SC::HttpClientRequest::url

Full URL including scheme (e.g. "https://example.com/path")


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