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

Function GetURI

engine/dlib/src/dlib/http_client.cpp:1278–1284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1276 }
1277
1278 Result GetURI(HClient client, const char* path, char* uri, uint32_t uri_length)
1279 {
1280 uint32_t n = dmSnPrintf(uri, uri_length, "%s://%s:%d%s", client->m_Secure ? "https" : "http", client->m_HostURI.m_Hostname, (int) client->m_HostURI.m_Port, path);
1281 if (n < uri_length)
1282 return RESULT_OK;
1283 return RESULT_INVAL;
1284 }
1285
1286 Result Get(HClient client, const char* path)
1287 {

Callers 2

HandleRequestFunction · 0.85
GetRequestFromUriFunction · 0.85

Calls 1

dmSnPrintfFunction · 0.85

Tested by

no test coverage detected