diff options
| author | Nakidai <nakidai@disroot.org> | 2024-12-13 14:16:23 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2024-12-13 14:16:23 +0300 |
| commit | 2b892e4d6b5f31035191920643c12936b86000ce (patch) | |
| tree | 135860439bcdc2db9d2e5cb655fed03c557a2854 /man/libhttpc_dumpresponse.3 | |
| parent | 35bcba79e533447f1dfd62994f6f9c87cd8a9101 (diff) | |
| download | libhttpc-2b892e4d6b5f31035191920643c12936b86000ce.tar.gz libhttpc-2b892e4d6b5f31035191920643c12936b86000ce.zip | |
Divide manpages
Diffstat (limited to 'man/libhttpc_dumpresponse.3')
| -rw-r--r-- | man/libhttpc_dumpresponse.3 | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/man/libhttpc_dumpresponse.3 b/man/libhttpc_dumpresponse.3 new file mode 100644 index 0000000..f9b53e1 --- /dev/null +++ b/man/libhttpc_dumpresponse.3 @@ -0,0 +1,89 @@ +.Dd December 13, 2024 +.Dt LIBHTTPC_DUMPRESPONSE 3 +.Os +. +.Sh NAME +.Nm LibHTTPC_dumpResponse , +.Nm LibHTTPC_writeResponse +.Nd save +.Xr libhttpc_response 3 +. +.Sh SYNOPSIS +.In libhttpc/libhttpc.h +.Ft "char *" +.Fo LibHTTPC_dumpResponse +.Fa "struct LibHTTPC_Response *response" +.Fa "char *buf" +.Fa "size_t buf_len" +.Fc +.Ft int +.Fo "LibHTTPC_writeResponse" +.Fa "int sockfd" +.Fa "struct LibHTTPC_Response *response" +.Fc +. +.Sh DESCRIPTION +.Nm +combines +contents of +.Ql response +in the +.Ql buf . +. +.Pp +.Nm LibHTTPC_writeResponse +function writes +.Ql response +to the +.Ql sockfd . +. +.Pp +Both functions can +autocomplete responses. +If +.Ql version +is +.Ql NULL , +then it will +be set to +.Ql "HTTP/1.1" . +If +.Ql status +is 0, +then it will +be set to +200. +If +.Ql phrase +is +.Ql NULL , +then it will +be set to +.Ql LibHTTPC_dumpStatus(status) . +. +.Sh RETURN VALUES +.Nm LibHTTPC_writeResponse +will return 1 +if cannot send +response. +Read +.Ql ERRORS +section of +.Xr send 2 +for more information. +. +.Sh SEE ALSO +.Xr libhttpc 3 , +.Xr libhttpc_header 3 , +.Xr libhttpc_status 3 , +.Xr libhttpc_response 3 +. +.Sh AUTHORS +.An Nakidai Perumenei Aq Mt nakidai@disroot.org +. +.Sh CAVEATS +.Nm +may edit fields of +.Ql response +that are set to +0 |