diff options
Diffstat (limited to 'man')
| -rw-r--r-- | man/libhttpc_dumpresponse.3 | 42 | ||||
| -rw-r--r-- | man/libhttpc_loadrequest.3 | 4 |
2 files changed, 43 insertions, 3 deletions
diff --git a/man/libhttpc_dumpresponse.3 b/man/libhttpc_dumpresponse.3 index 81074ec..9136188 100644 --- a/man/libhttpc_dumpresponse.3 +++ b/man/libhttpc_dumpresponse.3 @@ -1,4 +1,4 @@ -.Dd December 14, 2024 +.Dd December 15, 2024 .Dt LIBHTTPC_DUMPRESPONSE 3 .Os . @@ -29,6 +29,14 @@ contents of .Fa response in the .Fa buf . +If +.Fa buf +is equal to +.Dv NULL , +then function will +allocate buffer +itself using +.Xr libhttpc-alloc 3 . . .Pp .Fn LibHTTPC_writeResponse @@ -62,6 +70,38 @@ be set to .Fn LibHTTPC_dumpStatus status . . .Sh RETURN VALUES +.Fn LibHTTPC_dumpResponse +will return pointer +to the buffer +on success. +If function returned +.Dv NULL , +it could mean +either: +.Bl -bullet +.It +If +.Xr errno 3 +is 0 +(Success), +it means that +user hadn't set +.Xr libhttpc-alloc 3 . +.It +If +.Xr errno 3 +is not 0, +it means that +.Fn LibHTTPC_malloc +has failed +to allocate buffer. +Read +.Ql ERRORS +section of +.Ql malloc 3 +for more information. +.El +. .Fn LibHTTPC_writeResponse will return 1 if cannot send diff --git a/man/libhttpc_loadrequest.3 b/man/libhttpc_loadrequest.3 index affac5c..d926953 100644 --- a/man/libhttpc_loadrequest.3 +++ b/man/libhttpc_loadrequest.3 @@ -17,7 +17,7 @@ .Sh DESCRIPTION .Fn LibHTTPC_loadRequest parses -.Ql buf +.Fa buf and fills .Fa request_buf . If @@ -47,7 +47,7 @@ it could mean either: .Bl -bullet .It -if +If .Xr errno 3 is 0 (Success), |