diff options
| author | Nakidai <nakidai@disroot.org> | 2024-12-14 18:38:43 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2024-12-14 18:38:43 +0300 |
| commit | efca9fa1b6deb6ac2767c782a3bfcec639ed9fc0 (patch) | |
| tree | 5c2c50c33665717733a1fde3e5beaae775275bf8 /man/libhttpc_dumpresponse.3 | |
| parent | 442bd0c92977b75c1fe712b271de0de13e6a604e (diff) | |
| download | libhttpc-efca9fa1b6deb6ac2767c782a3bfcec639ed9fc0.tar.gz libhttpc-efca9fa1b6deb6ac2767c782a3bfcec639ed9fc0.zip | |
Fix mans owO
Diffstat (limited to 'man/libhttpc_dumpresponse.3')
| -rw-r--r-- | man/libhttpc_dumpresponse.3 | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/man/libhttpc_dumpresponse.3 b/man/libhttpc_dumpresponse.3 index f9b53e1..81074ec 100644 --- a/man/libhttpc_dumpresponse.3 +++ b/man/libhttpc_dumpresponse.3 @@ -1,4 +1,4 @@ -.Dd December 13, 2024 +.Dd December 14, 2024 .Dt LIBHTTPC_DUMPRESPONSE 3 .Os . @@ -23,46 +23,46 @@ .Fc . .Sh DESCRIPTION -.Nm +.Fn LibHTTPC_dumpResponse combines contents of -.Ql response +.Fa response in the -.Ql buf . +.Fa buf . . .Pp -.Nm LibHTTPC_writeResponse -function writes -.Ql response +.Fn LibHTTPC_writeResponse +writes the +.Fa response to the -.Ql sockfd . +.Fa sockfd . . .Pp Both functions can autocomplete responses. If -.Ql version +.Fa response->version is -.Ql NULL , +.Dv NULL , then it will be set to .Ql "HTTP/1.1" . If -.Ql status +.Fa response->status is 0, then it will be set to 200. If -.Ql phrase +.Fa response->phrase is -.Ql NULL , +.Dv NULL , then it will be set to -.Ql LibHTTPC_dumpStatus(status) . +.Fn LibHTTPC_dumpStatus status . . .Sh RETURN VALUES -.Nm LibHTTPC_writeResponse +.Fn LibHTTPC_writeResponse will return 1 if cannot send response. |