HTTP error to be returned to the client if they could not be.
headersParseRequest
fn
uint headersParseRequest(string str, soup.message_headers.MessageHeaders reqHeaders, out string reqMethod, out string reqPath, out soup.types.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) |
reqHeaders | #SoupMessageHeaders to store the header values in |
reqMethod | if non-null, will be filled in with the request method |
reqPath | if non-null, will be filled in with the request path |
ver | if non-null, will be filled in with the HTTP version |
Returns
[soup.types.Status.Ok] if the headers could be parsed, or an