Replace http_/HTTP_ prefixes with chttp_/CHTTP_
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user