| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,40 +1,40 @@ | ||
|
|
||
|
|
||
| # Module hackney_app # | ||
| * [Function Index](#index) | ||
| * [Function Details](#functions) | ||
|
|
||
| __Behaviours:__ [`application`](application.md). | ||
| <a name="index"></a> | ||
|
|
||
| ## Function Index ## | ||
|
|
||
|
|
||
| <table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#ensure_deps_started-0">ensure_deps_started/0</a></td><td></td></tr><tr><td valign="top"><a href="#start-2">start/2</a></td><td></td></tr><tr><td valign="top"><a href="#stop-1">stop/1</a></td><td></td></tr></table> | ||
|
|
||
|
|
||
| <a name="functions"></a> | ||
|
|
||
| ## Function Details ## | ||
|
|
||
| <a name="ensure_deps_started-0"></a> | ||
|
|
||
| ### ensure_deps_started/0 ### | ||
|
|
||
| `ensure_deps_started() -> any()` | ||
|
|
||
|
|
||
| <a name="start-2"></a> | ||
|
|
||
| ### start/2 ### | ||
|
|
||
| `start(StartType, StartArgs) -> any()` | ||
|
|
||
|
|
||
| <a name="stop-1"></a> | ||
|
|
||
| ### stop/1 ### | ||
|
|
||
| `stop(State) -> any()` | ||
|
|
||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,82 +1,82 @@ | ||
|
|
||
|
|
||
| # Module hackney_headers # | ||
| * [Function Index](#index) | ||
| * [Function Details](#functions) | ||
|
|
||
|
|
||
| <a name="index"></a> | ||
|
|
||
| ## Function Index ## | ||
|
|
||
|
|
||
| <table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#delete-2">delete/2</a></td><td></td></tr><tr><td valign="top"><a href="#fold-3">fold/3</a></td><td></td></tr><tr><td valign="top"><a href="#get_value-2">get_value/2</a></td><td></td></tr><tr><td valign="top"><a href="#get_value-3">get_value/3</a></td><td></td></tr><tr><td valign="top"><a href="#insert-3">insert/3</a></td><td></td></tr><tr><td valign="top"><a href="#new-0">new/0</a></td><td></td></tr><tr><td valign="top"><a href="#new-1">new/1</a></td><td></td></tr><tr><td valign="top"><a href="#to_list-1">to_list/1</a></td><td></td></tr><tr><td valign="top"><a href="#update-2">update/2</a></td><td></td></tr></table> | ||
|
|
||
|
|
||
| <a name="functions"></a> | ||
|
|
||
| ## Function Details ## | ||
|
|
||
| <a name="delete-2"></a> | ||
|
|
||
| ### delete/2 ### | ||
|
|
||
| `delete(Key, Headers) -> any()` | ||
|
|
||
|
|
||
| <a name="fold-3"></a> | ||
|
|
||
| ### fold/3 ### | ||
|
|
||
| `fold(Fun, Acc0, Headers) -> any()` | ||
|
|
||
|
|
||
| <a name="get_value-2"></a> | ||
|
|
||
| ### get_value/2 ### | ||
|
|
||
| `get_value(Key, Headers) -> any()` | ||
|
|
||
|
|
||
| <a name="get_value-3"></a> | ||
|
|
||
| ### get_value/3 ### | ||
|
|
||
| `get_value(Key, Headers, Default) -> any()` | ||
|
|
||
|
|
||
| <a name="insert-3"></a> | ||
|
|
||
| ### insert/3 ### | ||
|
|
||
| `insert(Key, Value, Headers) -> any()` | ||
|
|
||
|
|
||
| <a name="new-0"></a> | ||
|
|
||
| ### new/0 ### | ||
|
|
||
| `new() -> any()` | ||
|
|
||
|
|
||
| <a name="new-1"></a> | ||
|
|
||
| ### new/1 ### | ||
|
|
||
| `new(D) -> any()` | ||
|
|
||
|
|
||
| <a name="to_list-1"></a> | ||
|
|
||
| ### to_list/1 ### | ||
|
|
||
| `to_list(Headers) -> any()` | ||
|
|
||
|
|
||
| <a name="update-2"></a> | ||
|
|
||
| ### update/2 ### | ||
|
|
||
| `update(Headers, KVs) -> any()` | ||
|
|
||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,61 +1,64 @@ | ||
|
|
||
|
|
||
| # Module hackney_request # | ||
| * [Description](#description) | ||
| * [Function Index](#index) | ||
| * [Function Details](#functions) | ||
|
|
||
|
|
||
| module handling the request. | ||
|
|
||
| <a name="index"></a> | ||
|
|
||
| ## Function Index ## | ||
|
|
||
|
|
||
| <table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#end_stream_body-1">end_stream_body/1</a></td><td></td></tr><tr><td valign="top"><a href="#perform-2">perform/2</a></td><td></td></tr><tr><td valign="top"><a href="#send-2">send/2</a></td><td></td></tr><tr><td valign="top"><a href="#send_chunk-2">send_chunk/2</a></td><td></td></tr><tr><td valign="top"><a href="#sendfile-3">sendfile/3</a></td><td></td></tr><tr><td valign="top"><a href="#stream_body-2">stream_body/2</a></td><td></td></tr></table> | ||
|
|
||
|
|
||
| <a name="functions"></a> | ||
|
|
||
| ## Function Details ## | ||
|
|
||
| <a name="end_stream_body-1"></a> | ||
|
|
||
| ### end_stream_body/1 ### | ||
|
|
||
| `end_stream_body(Client) -> any()` | ||
|
|
||
|
|
||
| <a name="perform-2"></a> | ||
|
|
||
| ### perform/2 ### | ||
|
|
||
| `perform(Client0, X2) -> any()` | ||
|
|
||
|
|
||
| <a name="send-2"></a> | ||
|
|
||
| ### send/2 ### | ||
|
|
||
| `send(Client, Data) -> any()` | ||
|
|
||
|
|
||
| <a name="send_chunk-2"></a> | ||
|
|
||
| ### send_chunk/2 ### | ||
|
|
||
| `send_chunk(Client, Data) -> any()` | ||
|
|
||
|
|
||
| <a name="sendfile-3"></a> | ||
|
|
||
| ### sendfile/3 ### | ||
|
|
||
| `sendfile(FileName, Opts, Client) -> any()` | ||
|
|
||
|
|
||
| <a name="stream_body-2"></a> | ||
|
|
||
| ### stream_body/2 ### | ||
|
|
||
| `stream_body(Func, Client) -> any()` | ||
|
|
||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,111 +1,145 @@ | ||
|
|
||
|
|
||
| # Module hackney_ssl_transport # | ||
| * [Function Index](#index) | ||
| * [Function Details](#functions) | ||
|
|
||
|
|
||
| <a name="index"></a> | ||
|
|
||
| ## Function Index ## | ||
|
|
||
|
|
||
| <table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#close-1">close/1</a></td><td>Close a TCP socket.</td></tr><tr><td valign="top"><a href="#connect-3">connect/3</a></td><td></td></tr><tr><td valign="top"><a href="#connect-4">connect/4</a></td><td></td></tr><tr><td valign="top"><a href="#controlling_process-2">controlling_process/2</a></td><td>Assign a new controlling process <em>Pid</em> to <em>Socket</em>.</td></tr><tr><td valign="top"><a href="#peername-1">peername/1</a></td><td>Return the address and port for the other end of a connection.</td></tr><tr><td valign="top"><a href="#recv-2">recv/2</a></td><td></td></tr><tr><td valign="top"><a href="#recv-3">recv/3</a></td><td>Receive a packet from a socket in passive mode.</td></tr><tr><td valign="top"><a href="#send-2">send/2</a></td><td>Send a packet on a socket.</td></tr><tr><td valign="top"><a href="#setopts-2">setopts/2</a></td><td>Set one or more options for a socket.</td></tr><tr><td valign="top"><a href="#sockname-1">sockname/1</a></td><td>Get the local address and port of a socket.</td></tr></table> | ||
|
|
||
|
|
||
| <a name="functions"></a> | ||
|
|
||
| ## Function Details ## | ||
|
|
||
| <a name="close-1"></a> | ||
|
|
||
| ### close/1 ### | ||
|
|
||
|
|
||
| <pre><code> | ||
| close(Socket::<a href="ssl.md#type-sslsocket">ssl:sslsocket()</a>) -> ok | ||
| </code></pre> | ||
|
|
||
| <br></br> | ||
|
|
||
|
|
||
| Close a TCP socket. | ||
|
|
||
| __See also:__ [ssl:close/1](ssl.md#close-1). | ||
| <a name="connect-3"></a> | ||
|
|
||
| ### connect/3 ### | ||
|
|
||
| `connect(Host, Port, Opts) -> any()` | ||
|
|
||
|
|
||
| <a name="connect-4"></a> | ||
|
|
||
| ### connect/4 ### | ||
|
|
||
| `connect(Host, Port, Opts, Timeout) -> any()` | ||
|
|
||
|
|
||
| <a name="controlling_process-2"></a> | ||
|
|
||
| ### controlling_process/2 ### | ||
|
|
||
|
|
||
| <pre><code> | ||
| controlling_process(Socket::<a href="ssl.md#type-sslsocket">ssl:sslsocket()</a>, Pid::pid()) -> ok | {error, closed | not_owner | atom()} | ||
| </code></pre> | ||
|
|
||
| <br></br> | ||
|
|
||
|
|
||
| Assign a new controlling process _Pid_ to _Socket_. | ||
|
|
||
| __See also:__ [ssl:controlling_process/2](ssl.md#controlling_process-2). | ||
| <a name="peername-1"></a> | ||
|
|
||
| ### peername/1 ### | ||
|
|
||
|
|
||
| <pre><code> | ||
| peername(Socket::<a href="ssl.md#type-sslsocket">ssl:sslsocket()</a>) -> {ok, {<a href="inet.md#type-ip_address">inet:ip_address()</a>, <a href="inet.md#type-port_number">inet:port_number()</a>}} | {error, atom()} | ||
| </code></pre> | ||
|
|
||
| <br></br> | ||
|
|
||
|
|
||
| Return the address and port for the other end of a connection. | ||
|
|
||
| __See also:__ [ssl:peername/1](ssl.md#peername-1). | ||
| <a name="recv-2"></a> | ||
|
|
||
| ### recv/2 ### | ||
|
|
||
| `recv(Socket, Length) -> any()` | ||
|
|
||
|
|
||
| <a name="recv-3"></a> | ||
|
|
||
| ### recv/3 ### | ||
|
|
||
|
|
||
| <pre><code> | ||
| recv(Socket::<a href="ssl.md#type-sslsocket">ssl:sslsocket()</a>, Length::non_neg_integer(), Timeout::timeout()) -> {ok, any()} | {error, closed | atom()} | ||
| </code></pre> | ||
|
|
||
| <br></br> | ||
|
|
||
|
|
||
| Receive a packet from a socket in passive mode. | ||
|
|
||
| __See also:__ [ssl:recv/3](ssl.md#recv-3). | ||
| <a name="send-2"></a> | ||
|
|
||
| ### send/2 ### | ||
|
|
||
|
|
||
| <pre><code> | ||
| send(Socket::<a href="ssl.md#type-sslsocket">ssl:sslsocket()</a>, Packet::iolist()) -> ok | {error, atom()} | ||
| </code></pre> | ||
|
|
||
| <br></br> | ||
|
|
||
|
|
||
| Send a packet on a socket. | ||
|
|
||
| __See also:__ [ssl:send/2](ssl.md#send-2). | ||
| <a name="setopts-2"></a> | ||
|
|
||
| ### setopts/2 ### | ||
|
|
||
|
|
||
| <pre><code> | ||
| setopts(Socket::<a href="ssl.md#type-sslsocket">ssl:sslsocket()</a>, Opts::list()) -> ok | {error, atom()} | ||
| </code></pre> | ||
|
|
||
| <br></br> | ||
|
|
||
|
|
||
| Set one or more options for a socket. | ||
|
|
||
| __See also:__ [ssl:setopts/2](ssl.md#setopts-2). | ||
| <a name="sockname-1"></a> | ||
|
|
||
| ### sockname/1 ### | ||
|
|
||
|
|
||
| <pre><code> | ||
| sockname(Socket::<a href="ssl.md#type-sslsocket">ssl:sslsocket()</a>) -> {ok, {<a href="inet.md#type-ip_address">inet:ip_address()</a>, <a href="inet.md#type-port_number">inet:port_number()</a>}} | {error, atom()} | ||
| </code></pre> | ||
|
|
||
| <br></br> | ||
|
|
||
|
|
||
| Get the local address and port of a socket | ||
|
|
||
| __See also:__ [ssl:sockname/1](ssl.md#sockname-1). |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,33 +1,33 @@ | ||
|
|
||
|
|
||
| # Module hackney_sup # | ||
| * [Function Index](#index) | ||
| * [Function Details](#functions) | ||
|
|
||
| __Behaviours:__ [`supervisor`](supervisor.md). | ||
| <a name="index"></a> | ||
|
|
||
| ## Function Index ## | ||
|
|
||
|
|
||
| <table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#init-1">init/1</a></td><td></td></tr><tr><td valign="top"><a href="#start_link-0">start_link/0</a></td><td></td></tr></table> | ||
|
|
||
|
|
||
| <a name="functions"></a> | ||
|
|
||
| ## Function Details ## | ||
|
|
||
| <a name="init-1"></a> | ||
|
|
||
| ### init/1 ### | ||
|
|
||
| `init(X1) -> any()` | ||
|
|
||
|
|
||
| <a name="start_link-0"></a> | ||
|
|
||
| ### start_link/0 ### | ||
|
|
||
| `start_link() -> any()` | ||
|
|
||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,111 +1,145 @@ | ||
|
|
||
|
|
||
| # Module hackney_tcp_transport # | ||
| * [Function Index](#index) | ||
| * [Function Details](#functions) | ||
|
|
||
|
|
||
| <a name="index"></a> | ||
|
|
||
| ## Function Index ## | ||
|
|
||
|
|
||
| <table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#close-1">close/1</a></td><td>Close a TCP socket.</td></tr><tr><td valign="top"><a href="#connect-3">connect/3</a></td><td></td></tr><tr><td valign="top"><a href="#connect-4">connect/4</a></td><td></td></tr><tr><td valign="top"><a href="#controlling_process-2">controlling_process/2</a></td><td>Assign a new controlling process <em>Pid</em> to <em>Socket</em>.</td></tr><tr><td valign="top"><a href="#peername-1">peername/1</a></td><td>Return the address and port for the other end of a connection.</td></tr><tr><td valign="top"><a href="#recv-2">recv/2</a></td><td></td></tr><tr><td valign="top"><a href="#recv-3">recv/3</a></td><td>Receive a packet from a socket in passive mode.</td></tr><tr><td valign="top"><a href="#send-2">send/2</a></td><td>Send a packet on a socket.</td></tr><tr><td valign="top"><a href="#setopts-2">setopts/2</a></td><td>Set one or more options for a socket.</td></tr><tr><td valign="top"><a href="#sockname-1">sockname/1</a></td><td>Get the local address and port of a socket.</td></tr></table> | ||
|
|
||
|
|
||
| <a name="functions"></a> | ||
|
|
||
| ## Function Details ## | ||
|
|
||
| <a name="close-1"></a> | ||
|
|
||
| ### close/1 ### | ||
|
|
||
|
|
||
| <pre><code> | ||
| close(Socket::<a href="inet.md#type-socket">inet:socket()</a>) -> ok | ||
| </code></pre> | ||
|
|
||
| <br></br> | ||
|
|
||
|
|
||
| Close a TCP socket. | ||
|
|
||
| __See also:__ [gen_tcp:close/1](gen_tcp.md#close-1). | ||
| <a name="connect-3"></a> | ||
|
|
||
| ### connect/3 ### | ||
|
|
||
| `connect(Host, Port, Opts) -> any()` | ||
|
|
||
|
|
||
| <a name="connect-4"></a> | ||
|
|
||
| ### connect/4 ### | ||
|
|
||
| `connect(Host, Port, Opts, Timeout) -> any()` | ||
|
|
||
|
|
||
| <a name="controlling_process-2"></a> | ||
|
|
||
| ### controlling_process/2 ### | ||
|
|
||
|
|
||
| <pre><code> | ||
| controlling_process(Socket::<a href="inet.md#type-socket">inet:socket()</a>, Pid::pid()) -> ok | {error, closed | not_owner | atom()} | ||
| </code></pre> | ||
|
|
||
| <br></br> | ||
|
|
||
|
|
||
| Assign a new controlling process _Pid_ to _Socket_. | ||
|
|
||
| __See also:__ [gen_tcp:controlling_process/2](gen_tcp.md#controlling_process-2). | ||
| <a name="peername-1"></a> | ||
|
|
||
| ### peername/1 ### | ||
|
|
||
|
|
||
| <pre><code> | ||
| peername(Socket::<a href="inet.md#type-socket">inet:socket()</a>) -> {ok, {<a href="inet.md#type-ip_address">inet:ip_address()</a>, <a href="inet.md#type-port_number">inet:port_number()</a>}} | {error, atom()} | ||
| </code></pre> | ||
|
|
||
| <br></br> | ||
|
|
||
|
|
||
| Return the address and port for the other end of a connection. | ||
|
|
||
| __See also:__ [inet:peername/1](inet.md#peername-1). | ||
| <a name="recv-2"></a> | ||
|
|
||
| ### recv/2 ### | ||
|
|
||
| `recv(Socket, Length) -> any()` | ||
|
|
||
|
|
||
| <a name="recv-3"></a> | ||
|
|
||
| ### recv/3 ### | ||
|
|
||
|
|
||
| <pre><code> | ||
| recv(Socket::<a href="inet.md#type-socket">inet:socket()</a>, Length::non_neg_integer(), Timeout::timeout()) -> {ok, any()} | {error, closed | atom()} | ||
| </code></pre> | ||
|
|
||
| <br></br> | ||
|
|
||
|
|
||
| Receive a packet from a socket in passive mode. | ||
|
|
||
| __See also:__ [gen_tcp:recv/3](gen_tcp.md#recv-3). | ||
| <a name="send-2"></a> | ||
|
|
||
| ### send/2 ### | ||
|
|
||
|
|
||
| <pre><code> | ||
| send(Socket::<a href="inet.md#type-socket">inet:socket()</a>, Packet::iolist()) -> ok | {error, atom()} | ||
| </code></pre> | ||
|
|
||
| <br></br> | ||
|
|
||
|
|
||
| Send a packet on a socket. | ||
|
|
||
| __See also:__ [gen_tcp:send/2](gen_tcp.md#send-2). | ||
| <a name="setopts-2"></a> | ||
|
|
||
| ### setopts/2 ### | ||
|
|
||
|
|
||
| <pre><code> | ||
| setopts(Socket::<a href="inet.md#type-socket">inet:socket()</a>, Opts::list()) -> ok | {error, atom()} | ||
| </code></pre> | ||
|
|
||
| <br></br> | ||
|
|
||
|
|
||
| Set one or more options for a socket. | ||
|
|
||
| __See also:__ [inet:setopts/2](inet.md#setopts-2). | ||
| <a name="sockname-1"></a> | ||
|
|
||
| ### sockname/1 ### | ||
|
|
||
|
|
||
| <pre><code> | ||
| sockname(Socket::<a href="inet.md#type-socket">inet:socket()</a>) -> {ok, {<a href="inet.md#type-ip_address">inet:ip_address()</a>, <a href="inet.md#type-port_number">inet:port_number()</a>}} | {error, atom()} | ||
| </code></pre> | ||
|
|
||
| <br></br> | ||
|
|
||
|
|
||
| Get the local address and port of a socket | ||
|
|
||
| __See also:__ [inet:sockname/1](inet.md#sockname-1). |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,111 +1,130 @@ | ||
|
|
||
|
|
||
| # Module hackney_util # | ||
| * [Function Index](#index) | ||
| * [Function Details](#functions) | ||
|
|
||
|
|
||
| <a name="index"></a> | ||
|
|
||
| ## Function Index ## | ||
|
|
||
|
|
||
| <table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#char_to_lower-1">char_to_lower/1</a></td><td>Convert [A-Z] characters to lowercase.</td></tr><tr><td valign="top"><a href="#char_to_upper-1">char_to_upper/1</a></td><td>Convert [a-z] characters to uppercase.</td></tr><tr><td valign="top"><a href="#content_type-1">content_type/1</a></td><td></td></tr><tr><td valign="top"><a href="#is_ipv6-1">is_ipv6/1</a></td><td></td></tr><tr><td valign="top"><a href="#join-2">join/2</a></td><td></td></tr><tr><td valign="top"><a href="#to_binary-1">to_binary/1</a></td><td></td></tr><tr><td valign="top"><a href="#to_hex-1">to_hex/1</a></td><td></td></tr><tr><td valign="top"><a href="#to_lower-1">to_lower/1</a></td><td>Convert a binary string to lowercase.</td></tr><tr><td valign="top"><a href="#to_upper-1">to_upper/1</a></td><td></td></tr><tr><td valign="top"><a href="#token-2">token/2</a></td><td>Parse a token.</td></tr><tr><td valign="top"><a href="#token_ci-2">token_ci/2</a></td><td>Parse a case-insensitive token.</td></tr></table> | ||
|
|
||
|
|
||
| <a name="functions"></a> | ||
|
|
||
| ## Function Details ## | ||
|
|
||
| <a name="char_to_lower-1"></a> | ||
|
|
||
| ### char_to_lower/1 ### | ||
|
|
||
|
|
||
| <pre><code> | ||
| char_to_lower(Ch::char()) -> char() | ||
| </code></pre> | ||
|
|
||
| <br></br> | ||
|
|
||
|
|
||
| Convert [A-Z] characters to lowercase. | ||
| <a name="char_to_upper-1"></a> | ||
|
|
||
| ### char_to_upper/1 ### | ||
|
|
||
|
|
||
| <pre><code> | ||
| char_to_upper(Ch::char()) -> char() | ||
| </code></pre> | ||
|
|
||
| <br></br> | ||
|
|
||
|
|
||
| Convert [a-z] characters to uppercase. | ||
| <a name="content_type-1"></a> | ||
|
|
||
| ### content_type/1 ### | ||
|
|
||
| `content_type(Name) -> any()` | ||
|
|
||
|
|
||
| <a name="is_ipv6-1"></a> | ||
|
|
||
| ### is_ipv6/1 ### | ||
|
|
||
| `is_ipv6(Host) -> any()` | ||
|
|
||
|
|
||
| <a name="join-2"></a> | ||
|
|
||
| ### join/2 ### | ||
|
|
||
| `join(L, Separator) -> any()` | ||
|
|
||
|
|
||
| <a name="to_binary-1"></a> | ||
|
|
||
| ### to_binary/1 ### | ||
|
|
||
| `to_binary(V) -> any()` | ||
|
|
||
|
|
||
| <a name="to_hex-1"></a> | ||
|
|
||
| ### to_hex/1 ### | ||
|
|
||
| `to_hex(Bin) -> any()` | ||
|
|
||
|
|
||
| <a name="to_lower-1"></a> | ||
|
|
||
| ### to_lower/1 ### | ||
|
|
||
|
|
||
| <pre><code> | ||
| to_lower(L::binary()) -> binary() | ||
| </code></pre> | ||
|
|
||
| <br></br> | ||
|
|
||
|
|
||
| Convert a binary string to lowercase. | ||
| <a name="to_upper-1"></a> | ||
|
|
||
| ### to_upper/1 ### | ||
|
|
||
| `to_upper(U) -> any()` | ||
|
|
||
|
|
||
| <a name="token-2"></a> | ||
|
|
||
| ### token/2 ### | ||
|
|
||
|
|
||
| <pre><code> | ||
| token(Data::binary(), Fun::function()) -> any() | ||
| </code></pre> | ||
|
|
||
| <br></br> | ||
|
|
||
|
|
||
| Parse a token. | ||
| <a name="token_ci-2"></a> | ||
|
|
||
| ### token_ci/2 ### | ||
|
|
||
|
|
||
| <pre><code> | ||
| token_ci(Data::binary(), Fun::function()) -> any() | ||
| </code></pre> | ||
|
|
||
| <br></br> | ||
|
|
||
|
|
||
|
|
||
| Parse a case-insensitive token. | ||
|
|
||
|
|
||
| Changes all characters to lowercase. |