Replace http_/HTTP_ prefixes with chttp_/CHTTP_

This commit is contained in:
2025-12-09 12:12:21 +01:00
parent db030b3834
commit 04deae62d6
25 changed files with 1703 additions and 1703 deletions
+5 -5
View File
@@ -2,14 +2,14 @@
int main(void)
{
HTTP_Response *response;
CHTTP_Response *response;
int ret = http_get(HTTP_STR("http://coz.is/"), NULL, 0, &response);
if (ret == HTTP_OK) {
int ret = chttp_get(CHTTP_STR("http://coz.is/"), NULL, 0, &response);
if (ret == CHTTP_OK) {
printf("Received %d bytes\n", response->body.len);
http_free_response(response);
chttp_free_response(response);
} else {
printf("Request failure: %s\n", http_strerror(ret));
printf("Request failure: %s\n", chttp_strerror(ret));
}
return 0;
}