11#ifndef MYMPD_HTTP_CLIENT_H
12#define MYMPD_HTTP_CLIENT_H
14#include "dist/sds/sds.h"
void http_client_request(struct mg_client_request_t *mg_client_request, struct mg_client_response_t *mg_client_response)
Definition http_client.c:108
void http_client_response_clear(struct mg_client_response_t *mg_client_response)
Definition http_client.c:98
sds get_dnsserver(void)
Definition http_client.c:35
sds http_client_get_content_type(struct mg_client_response_t *response)
Definition http_client.c:173
void http_client_response_init(struct mg_client_response_t *mg_client_response)
Definition http_client.c:87
Linked list implementation.
Definition http_client.h:20
const char * post_data
optional already encoded post data
Definition http_client.h:24
const char * uri
full uri to connect
Definition http_client.h:22
const char * extra_headers
headers for the request
Definition http_client.h:23
const char * method
http method (e.g. GET, POST)
Definition http_client.h:21
sds connect_uri
redirect uri (only internal)
Definition http_client.h:25
bool cert_check
check server certificate
Definition http_client.h:26
sds ca_certs
CA certificates.
Definition http_client.h:27
Definition http_client.h:33
sds body
response body
Definition http_client.h:37
struct t_list header
response header
Definition http_client.h:36
int response_code
http response code
Definition http_client.h:35
int rc
return code, 0 = success
Definition http_client.h:34