about summary refs log tree commit diff
path: root/man/libhttpc_request_.3
blob: 900508196c95091ca338468b6070670e82e66a2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
.Dd December 14, 2024
.Dt LIBHTTPC_REQUEST_ 3
.Os
.
.Sh NAME
.Nm LibHTTPC_Request_
.Nd
.Xr libhttpc_request 3
destructor
.
.Sh SYNOPSIS
.In libhttpc/libhttpc.h
.Fc
.Ft int
.Fo LibHTTPC_Request_
.Fa "struct LibHTTPC_Request *request"
.Fc
.
.Sh DESCRIPTION
.Fn LibHTTPC_Request_
is a destructor of
.Xr libhttpc_request 3 .
It frees
.Fa request->headers
if
.Fa request->header_selfalloc
is set,
and then frees
.Fa request
if
.Fa request->selfalloc
is set.
.
.Sh RETURN VALUES
.Fn LibHTTPC_Request_
returns either
-1
if user hadn't set
.Xr libhttpc-alloc 3
or
.Xr errno 3 .
.
.Sh SEE ALSO
.Xr libhttpc 3 ,
.Xr libhttpc-alloc 3 ,
.Xr libhttpc_header 3 ,
.Xr libhttpc_request 3
.
.Sh AUTHORS
.An Nakidai Perumenei Aq Mt nakidai@disroot.org