Rename http.c/.h to chttp.c/.h and improve amalgamation formatting

This commit is contained in:
2025-07-20 18:33:51 +02:00
parent 8be1b8e3d6
commit dba15c946e
14 changed files with 87 additions and 28 deletions
+1 -1
View File
@@ -93,4 +93,4 @@ void print_bytes(HTTP_String prefix, HTTP_String src)
cur++;
}
putc('\n', stream);
}
}
+1 -1
View File
@@ -15,4 +15,4 @@ HTTP_String http_trim (HTTP_String s);
#define HTTP_COUNT(X) (sizeof(X) / sizeof((X)[0]))
#define HTTP_ASSERT(X) {if (!(X)) { __builtin_trap(); }}
#endif // BASIC_INCLUDED
#endif // BASIC_INCLUDED
+1 -1
View File
@@ -370,4 +370,4 @@ void http_request_free(HTTP_RequestHandle handle)
socket_free(&conn->socket);
conn->state = CLIENT_CONNECTION_FREE;
client->num_conns--;
}
}
+1 -1
View File
@@ -27,4 +27,4 @@ void http_request_submit (HTTP_RequestHandle handle);
HTTP_Response* http_request_result (HTTP_RequestHandle handle);
void http_request_free (HTTP_RequestHandle handle);
#endif // CLIENT_INCLUDED
#endif // CLIENT_INCLUDED
+1 -1
View File
@@ -995,4 +995,4 @@ void http_engine_undo(HTTP_Engine *eng)
eng->state = HTTP_ENGINE_STATE_CLIENT_PREP_URL;
else
eng->state = HTTP_ENGINE_STATE_SERVER_PREP_STATUS;
}
}
+2 -1
View File
@@ -115,4 +115,5 @@ char* http_engine_bodybuf (HTTP_Engine *eng, int *cap);
void http_engine_bodyack (HTTP_Engine *eng, int num);
void http_engine_done (HTTP_Engine *eng);
void http_engine_undo (HTTP_Engine *eng);
#endif // HTTP_ENGINE_INCLUDED
#endif // HTTP_ENGINE_INCLUDED
+1 -1
View File
@@ -1034,4 +1034,4 @@ HTTP_String http_getcookie(HTTP_Request *req, HTTP_String name)
{
// TODO
return (HTTP_String) {NULL, 0};
}
}
+1 -1
View File
@@ -90,4 +90,4 @@ HTTP_String http_getqueryparam (HTTP_Request *req, HTTP_String name);
HTTP_String http_getbodyparam (HTTP_Request *req, HTTP_String name);
HTTP_String http_getcookie (HTTP_Request *req, HTTP_String name);
#endif // PARSE_INCLUDED
#endif // PARSE_INCLUDED
+1 -1
View File
@@ -444,4 +444,4 @@ void http_response_done(HTTP_ResponseHandle res)
http_engine_free(&conn->engine);
server->num_conns--;
}
}
}
+1 -1
View File
@@ -781,4 +781,4 @@ int socket_wait(Socket **socks, int num_socks)
}
return -1;
}
}