| 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 | { |
no test coverage detected