summary refs log tree commit diff
path: root/man
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2024-12-14 11:16:04 +0300
committerNakidai <nakidai@disroot.org>2024-12-14 11:16:04 +0300
commit730cef9c2856332d7c8d4ae4509b2641cabfb4f8 (patch)
tree3419f5af6e5a7459e544629e617171a3fbffed90 /man
parent0c89de65f0037f07eb7c68707eef2c336ad3ae4c (diff)
downloadlibhttpc-730cef9c2856332d7c8d4ae4509b2641cabfb4f8.tar.gz
libhttpc-730cef9c2856332d7c8d4ae4509b2641cabfb4f8.zip
Fix mans
- Remove info from libhttpc_request.3 that was already moved to other
  mans
- Remove Vd from lists from libhttpc_request.3 and libhttpc_response.3
Diffstat (limited to 'man')
-rw-r--r--man/libhttpc_request.381
-rw-r--r--man/libhttpc_response.314
2 files changed, 15 insertions, 80 deletions
diff --git a/man/libhttpc_request.3 b/man/libhttpc_request.3
index d570ce4..61c27cb 100644
--- a/man/libhttpc_request.3
+++ b/man/libhttpc_request.3
@@ -8,14 +8,6 @@
 .Xr libhttpc 3
 stores HTTP requests
 .
-.Sh SYNOPSIS
-.In libhttpc/libhttpc.h
-.Fc
-.Ft int
-.Fo LibHTTPC_Request_
-.Fa "struct LibHTTPC_Request *request"
-.Fc
-.
 .Sh DESCRIPTION
 .Xr libhttpc 3
 stores requests
@@ -38,21 +30,21 @@ Let's see
 what means
 each member:
 .Bl -tag
-.It Vd char *buf
+.It char *buf
 Pointer to
 the buffer
 where request
 is stored
-.It Vd char *method
+.It char *method
 Pointer to
 the method.
 It should be equal to
 .Ql buf
-.It Vd char *uri
+.It char *uri
 Pointer to
 the
 .Xr uri 7
-.It Vd char *version
+.It char *version
 Pointer to
 the HTTP version number
 .It struct LibHTTPC_Header *headers
@@ -66,16 +58,16 @@ Length of
 array
 .It int header_selfalloc
 Set by the
-.Ql LibHTTPC_loadRequest
+.Xr libhttpc_loadrequest 3
 function if
 .Ql NULL
 was passed to
 request_buf argument.
 Used by
-.Ql LibHTTPC_Request_ .
+.Xr libhttpc_request_ 3 .
 .It int selfalloc
 Set by the
-.Ql LibHTTPC_loadRequest
+.Xr libhttpc_loadrequest 3
 function if
 .Ql headers
 array was
@@ -83,55 +75,9 @@ allocated
 by the function
 itself.
 Used by
-.Ql LibHTTPC_Request_ .
+.Xr libhttpc_request_ 3 .
 .El
 .
-.Pp
-.Ql LibHTTPC_loadRequest
-function parses
-.Ql buf
-and fills a
-.Ql struct LibHTTPC_Request .
-If
-.Ql request_buf
-argument
-is
-.Ql NULL ,
-then functon will
-allocate buffer
-itself.
-.
-.Pp
-.Ql LibHTTPC_Request_
-function
-is a destructor.
-It frees array
-if header_selfalloc is set,
-and then frees structure
-if selfalloc is set.
-.
-.Sh ERRORS
-If
-.Ql LibHTTPC_loadRequest
-returned
-.Ql NULL ,
-you should check
-.Ql errno .
-If
-.Ql errno
-is 0,
-then most likely
-you forgot to call
-.Ql LibHTTPC
-function.
-.
-.Pp
-If
-.Ql LibHTTPC_Request_
-returned -1,
-you should check
-.Ql errno .
-.
 .Sh SEE ALSO
 .Xr libhttpc 3 ,
 .Xr libhttpc-alloc 3 ,
@@ -141,14 +87,3 @@ you should check
 .
 .Sh AUTHORS
 .An Nakidai Perumenei Aq Mt nakidai@disroot.org
-.
-.Sh CAVEATS
-.Ql LibHTTPC_loadRequest
-function will
-destroy the buffer
-while working.
-It sets
-0 char
-on the end
-of every string in
-.Ql struct LibHTTPC_Request .
diff --git a/man/libhttpc_response.3 b/man/libhttpc_response.3
index 151b9ea..5f6c5cc 100644
--- a/man/libhttpc_response.3
+++ b/man/libhttpc_response.3
@@ -28,7 +28,7 @@ Let's see
 what means
 each member:
 .Bl -tag
-.It Vd char *buf
+.It char *buf
 Pointer to
 the buffer
 where response
@@ -37,20 +37,20 @@ Presented
 only for consistence,
 doesn't mean anything
 for the library.
-.It Vd const char *version
+.It const char *version
 Pointer to
 the HTTP version number
-.It Vd enum LibHTTPC_Status status
+.It enum LibHTTPC_Status status
 Response code
-.It Vd const char *phrase
+.It const char *phrase
 Explanation
 of response code
-.It Vd struct LibHTTPC_Header *headers
+.It struct LibHTTPC_Header *headers
 Array of headers
-.It Vd const char *body
+.It const char *body
 Pointer to
 the entity
-.It Vd size_t header_count
+.It size_t header_count
 Length of
 .Ql header_count
 array