Function
Soupheaders_parse_status_line
Declaration [src]
gboolean
soup_headers_parse_status_line (
const char* status_line,
SoupHTTPVersion* ver,
guint* status_code,
char** reason_phrase
)
Description [src]
Parses the HTTP Status-Line string in status_line
into ver
,
status_code
, and reason_phrase
.
status_line
must be terminated by either “\0” or “\r\n”.
Parameters
status_line |
const char* |
An HTTP Status-Line. |
|
The data is owned by the caller of the function. | |
The string is a NUL terminated UTF-8 string. | |
ver |
SoupHTTPVersion |
If non- |
|
The argument will be set by the function. | |
The argument can be NULL . | |
The called function takes ownership of the data, and is responsible for freeing it. | |
status_code |
guint* |
If non- |
|
The argument will be set by the function. | |
The argument can be NULL . | |
The called function takes ownership of the data, and is responsible for freeing it. | |
reason_phrase |
char** |
If non- |
|
The argument will be set by the function. | |
The argument can be NULL . | |
The called function takes ownership of the data, and is responsible for freeing it. | |
The string is a NUL terminated UTF-8 string. |