blob: 151b9ea484c6036981febc4599827ea0acde8217 (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
.Dd December 13, 2024
.Dt LIBHTTPC_RESPONSE 3
.Os
.
.Sh NAME
.Nm LibHTTPC_Response
.Nd how
.Xr libhttpc 3
stores HTTP responses
.
.Sh DESCRIPTION
.Xr libhttpc 3
stores responses
as follows:
.Bd -literal -offset indent
struct LibHTTPC_Response
{
char *buf;
const char *version;
enum LibHTTPC_Status status;
const char *phrase;
struct LibHTTPC_Header *headers;
const char *body;
size_t header_count;
};
.Ed
Let's see
what means
each member:
.Bl -tag
.It Vd char *buf
Pointer to
the buffer
where response
is stored.
Presented
only for consistence,
doesn't mean anything
for the library.
.It Vd const char *version
Pointer to
the HTTP version number
.It Vd enum LibHTTPC_Status status
Response code
.It Vd const char *phrase
Explanation
of response code
.It Vd struct LibHTTPC_Header *headers
Array of headers
.It Vd const char *body
Pointer to
the entity
.It Vd size_t header_count
Length of
.Ql header_count
array
.
.Sh SEE ALSO
.Xr libhttpc 3 ,
.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
|