Copyright © (C) 1999-2013, Erlang Solutions Ltd
Authors: Oscar Hellström (oscar@hellstrom.st), Diana Parra Corbacho (diana.corbacho@erlang-solutions.com), Ramon Lastres Guerrero (ramon.lastres@erlang-solutions.com).
fusco_cookie() = #fusco_cookie{}
fusco_url() = #fusco_url{}
format_request/6 | |
get_value/2 | Gets value from tuple list. |
get_value/3 | Gets value from tuple list. |
header_value/2 |
Returns the value associated with the Header in Headers . |
host_header/2 | |
is_close/1 | Compares header values to pre-defined values Faster than string:to_lower and then compare. |
parse_url/1 | |
to_lower/1 | Converts characters in a string ro lower case. |
format_request(Path::path(), Method::method(), Hdrs::headers(), Host::string(), Body::iolist(), Cookies::{boolean(), [fusco_cookie()]}) -> {iodata(), iodata()}
get_value(Key, List) -> term()
Gets value from tuple list
get_value(Key, List, Default) -> term()
Gets value from tuple list. If it is not present, returns default value.
header_value(Hdr::string() | binary(), Hdrs::headers()) -> undefined | term()
Returns the value associated with the Header
in Headers
.
Header
must be a lowercase string, since every header is mangled to
check the match.
host_header(Host::host(), Port::port_num()) -> any()
is_close(C) -> any()
Compares header values to pre-defined values Faster than string:to_lower and then compare
parse_url(URL::string()) -> fusco_url()
to_lower(String::unicode:chardata()) -> unicode:chardata()
Converts characters in a string ro lower case.
Generated by EDoc