Synchronous HTTP client.
More...
#include "dist/sds/sds.h"
#include "src/lib/list.h"
Go to the source code of this file.
◆ get_dnsserver()
sds get_dnsserver |
( |
void |
| ) |
|
Public functions Reads the dns server from resolv.conf
- Returns
- newly allocated sds string with first nameserver
◆ http_client_get_content_type()
Returns a sds pointer to the content-type header from response
- Parameters
-
- Returns
- sds or NULL if not found
◆ http_client_request()
Sends a HTTP request and follows redirects.
- Parameters
-
◆ http_client_response_clear()
Clears a http response struct for the HTTP client
- Parameters
-
mg_client_response | pointer to mg_client response struct |
◆ http_client_response_init()
Initializes a http response struct for the HTTP client
- Parameters
-
mg_client_response | pointer to mg_client response struct |