Configuration for an outgoing HTTP request. More...
#include <HttpClient.h>
Public Types | |
| enum | Method : uint8_t { HttpGET , HttpPOST , HttpPUT , HttpHEAD , HttpDELETE , HttpPATCH , HttpOPTIONS } |
Public Attributes | |
| Method | method = HttpGET |
| StringSpan | url |
| Full URL including scheme (e.g. "https://example.com/path") | |
| Span< const StringSpan > | headerNames |
| Span< const StringSpan > | headerValues |
| Span< const char > | body |
| Fixed request body. | |
| uint64_t | streamedBodySize = 0 |
| If > 0, caller must provide a HttpClientRequestBodyProvider. | |
| uint32_t | timeoutMs = 30000 |
| Request timeout in milliseconds (0 = no timeout) | |
| bool | allowRedirects = false |
Configuration for an outgoing HTTP request.
| Span<const char> SC::HttpClientRequest::body |
Fixed request body.
| uint64_t SC::HttpClientRequest::streamedBodySize = 0 |
If > 0, caller must provide a HttpClientRequestBodyProvider.
| uint32_t SC::HttpClientRequest::timeoutMs = 30000 |
Request timeout in milliseconds (0 = no timeout)
| StringSpan SC::HttpClientRequest::url |
Full URL including scheme (e.g. "https://example.com/path")