|
myMPD
Internal API documentation
|
HTTP client cache. More...
#include "src/lib/config_def.h"

Go to the source code of this file.
Functions | |
| struct mg_client_response_t * | http_client_cache_check (struct t_config *config, const char *uri) |
| struct mg_client_response_t * | http_client_cache_read (const char *filepath) |
| bool | http_client_cache_write (struct t_config *config, const char *uri, struct mg_client_response_t *mg_client_response) |
HTTP client cache.
| struct mg_client_response_t * http_client_cache_check | ( | struct t_config * | config, |
| const char * | uri | ||
| ) |
Checks the http client cache for uri
| config | Pointer to config |
| uri | URI to check |
| struct mg_client_response_t * http_client_cache_read | ( | const char * | filepath | ) |
Reads a response from the http client cache
| filepath | Cache filename |
| bool http_client_cache_write | ( | struct t_config * | config, |
| const char * | uri, | ||
| struct mg_client_response_t * | mg_client_response | ||
| ) |
Writes a http client cache file
| config | Pointer to config |
| uri | URI to write the cache for |
| mg_client_response | The http response to cache |