headers() = [{binary(), iodata()}]
status() = 100..999
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::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 the status line.
parse_version(X1::binary()) -> version()
Convert an HTTP version to atom.
Return formatted request-line and headers.
version(X1::version()) -> binary()
Return the version as a binary.
Generated by EDoc