summary refs log tree commit diff
path: root/man/libhttpc_response.3
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2024-12-13 14:16:23 +0300
committerNakidai <nakidai@disroot.org>2024-12-13 14:16:23 +0300
commit2b892e4d6b5f31035191920643c12936b86000ce (patch)
tree135860439bcdc2db9d2e5cb655fed03c557a2854 /man/libhttpc_response.3
parent35bcba79e533447f1dfd62994f6f9c87cd8a9101 (diff)
downloadlibhttpc-2b892e4d6b5f31035191920643c12936b86000ce.tar.gz
libhttpc-2b892e4d6b5f31035191920643c12936b86000ce.zip
Divide manpages
Diffstat (limited to 'man/libhttpc_response.3')
-rw-r--r--man/libhttpc_response.377
1 files changed, 7 insertions, 70 deletions
diff --git a/man/libhttpc_response.3 b/man/libhttpc_response.3
index 8ce283b..151b9ea 100644
--- a/man/libhttpc_response.3
+++ b/man/libhttpc_response.3
@@ -4,21 +4,9 @@
 .
 .Sh NAME
 .Nm LibHTTPC_Response
-.Nd way to store HTTP responses
-.
-.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
+.Nd how
+.Xr libhttpc 3
+stores HTTP responses
 .
 .Sh DESCRIPTION
 .Xr libhttpc 3
@@ -67,63 +55,12 @@ Length of
 .Ql header_count
 array
 .
-.Pp
-.Ql LibHTTPC_dumpResponse
-function combines
-contents of
-.Ql response
-in the buffer.
-.
-.Pp
-.Ql 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 ERRORS
-.Ql LibHTTPC_writeResponse
-will return 1
-if cannot send
-response.
-.
 .Sh SEE ALSO
 .Xr libhttpc 3 ,
-.Xr libhttpc_header ,
-.Xr libhttpc_status
+.Xr libhttpc_dumpresponse 3 ,
+.Xr libhttpc_header 3 ,
+.Xr libhttpc_status 3
+.Xr libhttpc_writeresponse 3
 .
 .Sh AUTHORS
 .An Nakidai Perumenei Aq Mt nakidai@disroot.org
-.
-.Sh CAVEATS
-.Ql LibHTTPC_dumpResponse
-and
-.Ql LibHTTPC_writeResponse
-may edit fields of
-.Ql response
-that are set to
-0