HTTP client cache.
More...
#include "compile_time.h"
#include "src/lib/http_client_cache.h"
#include "dist/mpack/mpack.h"
#include "src/lib/cache/cache_disk.h"
#include "src/lib/config_def.h"
#include "src/lib/filehandler.h"
#include "src/lib/http_client.h"
#include "src/lib/log.h"
#include "src/lib/mem.h"
#include "src/lib/mpack.h"
#include "src/lib/sds_extras.h"
#include <inttypes.h>
◆ http_client_cache_check()
Checks the http client cache for uri
- Parameters
-
| config | Pointer to config |
| uri | URI to check |
- Returns
- struct mg_client_response_t* or NULL if not found
◆ http_client_cache_read()
Reads a response from the http client cache
- Parameters
-
- Returns
- struct mg_client_response_t* or NULL on error
◆ http_client_cache_write()
Writes a http client cache file
- Parameters
-
| config | Pointer to config |
| uri | URI to write the cache for |
| mg_client_response | The http response to cache |
- Returns
- true on success, else false