From efca9fa1b6deb6ac2767c782a3bfcec639ed9fc0 Mon Sep 17 00:00:00 2001 From: Nakidai Date: Sat, 14 Dec 2024 18:38:43 +0300 Subject: Fix mans owO --- man/libhttpc_dumpresponse.3 | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'man/libhttpc_dumpresponse.3') 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. -- cgit 1.4.1