myMPD
Internal API documentation
Loading...
Searching...
No Matches
http_client_cache.h File Reference

HTTP client cache. More...

Include dependency graph for http_client_cache.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

struct mg_client_response_thttp_client_cache_check (struct t_config *config, const char *uri)
 
struct mg_client_response_thttp_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)
 

Detailed Description

HTTP client cache.

Function Documentation

◆ http_client_cache_check()

struct mg_client_response_t * http_client_cache_check ( struct t_config config,
const char *  uri 
)

Checks the http client cache for uri

Parameters
configPointer to config
uriURI to check
Returns
struct mg_client_response_t* or NULL if not found

◆ http_client_cache_read()

struct mg_client_response_t * http_client_cache_read ( const char *  filepath)

Reads a response from the http client cache

Parameters
filepathCache filename
Returns
struct mg_client_response_t* or NULL on error

◆ http_client_cache_write()

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

Parameters
configPointer to config
uriURI to write the cache for
mg_client_responseThe http response to cache
Returns
true on success, else false