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 HttpClientHeader > | headers |
| HttpClientRequestBody | body |
| HttpClientRequestOptions | options |
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.
| StringSpan SC::HttpClientRequest::url |
Full URL including scheme (e.g. "https://example.com/path")