headers_parse_request
Description:
public uint headers_parse_request (string str, int len, MessageHeaders req_headers, out string req_method, out string req_path, out HTTPVersion ver)
Parses the headers of an HTTP request in str and stores the results in req_method, req_path, ver
, and req_headers.
Beware that req_headers may be modified even on failure.
Parameters:
| str |
the headers (up to, but not including, the trailing blank line) |
| len |
length of |
| req_headers |
MessageHeaders to store the header values in |
| req_method |
if non-%NULL, will be filled in with the request method |
| req_path |
if non-%NULL, will be filled in with the request path |
| ver |
if non-%NULL, will be filled in with the HTTP version |
Returns:
|
OK if the headers could be parsed, or an HTTP error to be returned to the client if they could not be. |
Namespace: Soup
Package: libsoup-2.4