|
| | Client () |
| | Constructs and initialises the HTTP client.
|
| |
| | ~Client () noexcept |
| | Destroys the HTTP client, releasing the underlying resource.
|
| |
|
| Client (const Client &)=delete |
| |
|
Client & | operator= (const Client &)=delete |
| |
| | Client (Client &&other) noexcept |
| | Move constructor – transfers ownership of the client handle.
|
| |
| Client & | operator= (Client &&other) noexcept |
| | Move-assignment operator – transfers ownership of the client handle.
|
| |
| Result< Response > | get (const char *url) noexcept |
| | Performs an HTTP GET request.
|
| |
| Result< Response > | post (const char *url, const char *content_type, const void *body, size_t body_len) noexcept |
| | Performs an HTTP POST request.
|
| |
| Result< Response > | request (ove_http_method_t method, const char *url, const char *content_type, const void *body, size_t body_len) noexcept |
| | Performs a generic HTTP request.
|
| |
| Result< Response > | request (ove_http_method_t method, const char *url, const char *content_type, const void *body, size_t body_len, const ove_http_header_t *headers, size_t header_count) noexcept |
| | Performs an HTTP request with custom headers.
|
| |
| bool | valid () const |
| | Returns true if the underlying client handle is non-null.
|
| |
| ove_http_client_t | handle () const |
| | Returns the raw oveRTOS HTTP client handle.
|
| |
RAII wrapper around an oveRTOS HTTP client handle.
Constructs the underlying HTTP client on creation and destroys it on destruction. With CONFIG_OVE_ZERO_HEAP the client storage is held inline in the wrapper; move operations are therefore disabled in that configuration because the kernel may hold a pointer to the internal buffer.
- Note
- Non-copyable. Move-only when heap allocation is enabled.