version() = 'HTTP/1.0' | 'HTTP/1.1'
| headers/1 | |
| parse_fullpath/1 | Extract path and query string from a binary, removing any fragment component. |
| parse_headers/1 | Parse the list of headers. |
| parse_request_line/1 | Parse the request line. |
| parse_status_line/1 | Parse the status line. |
| parse_version/1 | Convert an HTTP version to atom. |
| request/4 | Return formatted request-line and headers. |
| response/3 | |
| status_to_integer/1 | |
| version/1 | Return the version as a binary. |
headers(Headers::cow_http:headers()) -> iodata()
parse_fullpath(Fullpath::binary()) -> {binary(), binary()}
Extract path and query string from a binary, removing any fragment component.
parse_headers(Data::binary()) -> {[{binary(), binary()}], binary()}
Parse the list of headers.
parse_request_line(Data::binary()) -> {binary(), binary(), version(), binary()}
Parse the request line.
parse_status_line(X1::binary()) -> {version(), cow_http:status(), binary(), binary()}
Parse the status line.
parse_version(X1::binary()) -> version()
Convert an HTTP version to atom.
request(Method::binary(), Path::iodata(), Version::version(), Headers::cow_http:headers()) -> iodata()
Return formatted request-line and headers.
response(Status::cow_http:status() | binary(), Version::version(), Headers::cow_http:headers()) -> iodata()
status_to_integer(Status::cow_http:status() | binary()) -> cow_http:status()
version(X1::version()) -> binary()
Return the version as a binary.
Generated by EDoc