diff options
Diffstat (limited to 'man/libhttpc_request.3')
| -rw-r--r-- | man/libhttpc_request.3 | 81 |
1 files changed, 8 insertions, 73 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 . |