MCPcopy Create free account
hub / github.com/defold/defold / SetCacheKey

Function SetCacheKey

engine/dlib/src/dlib/http_client.cpp:1270–1276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1268#endif
1269
1270 Result SetCacheKey(HClient client, const char* key)
1271 {
1272 uint32_t n = dmSnPrintf(client->m_CacheKey, sizeof(client->m_CacheKey), "%s", key);
1273 if (n < sizeof(client->m_CacheKey))
1274 return RESULT_OK;
1275 return RESULT_INVAL;
1276 }
1277
1278 Result GetURI(HClient client, const char* path, char* uri, uint32_t uri_length)
1279 {

Callers 4

HandleRequestFunction · 0.85
HttpGetMethod · 0.85
HttpGetPartialMethod · 0.85
GetRequestFromUriFunction · 0.85

Calls 1

dmSnPrintfFunction · 0.85

Tested by 2

HttpGetMethod · 0.68
HttpGetPartialMethod · 0.68