1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-09-05 23:44:00 +03:00

Enhanced documentation and code quality

This commit is contained in:
Lammert Bies
2016-12-16 15:30:05 +01:00
parent 6e61f9d8c0
commit 260d6dee93
64 changed files with 1036 additions and 268 deletions

View File

@@ -147,9 +147,10 @@ class FooHandler : public CivetHandler
{
/* Handler may access the request info using httplib_get_request_info */
const struct httplib_request_info *req_info = httplib_get_request_info(conn);
long long rlen, wlen;
long long nlen = 0;
long long tlen = req_info->content_length;
int64_t rlen;
int64_t wlen;
int64_t nlen = 0;
int64_t tlen = req_info->content_length;
char buf[1024];
httplib_printf(conn,
@@ -191,9 +192,10 @@ class FooHandler : public CivetHandler
{
/* Handler may access the request info using httplib_get_request_info */
const struct httplib_request_info *req_info = httplib_get_request_info(conn);
long long rlen, wlen;
long long nlen = 0;
long long tlen = req_info->content_length;
int64_t rlen;
int64_t wlen;
int64_t nlen = 0;
int64_t tlen = req_info->content_length;
FILE * f;
char buf[1024];
int fail = 0;