diff options
author | Loïc Hoguin <[email protected]> | 2012-08-27 12:16:07 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2012-08-27 12:16:07 +0200 |
commit | a5e75219f0bb9602178314a00eb9e0f9c22bcac6 (patch) | |
tree | d09cce41044ae6d6995a92b2a24126451925f0a6 /src/cowboy_http.erl | |
parent | e4124de2c71564d37b3732ede0fe1542de1d6f99 (diff) | |
download | cowboy-a5e75219f0bb9602178314a00eb9e0f9c22bcac6.tar.gz cowboy-a5e75219f0bb9602178314a00eb9e0f9c22bcac6.tar.bz2 cowboy-a5e75219f0bb9602178314a00eb9e0f9c22bcac6.zip |
Have only one -export and -export_type per line
This should make easier spotting additions and removals in commits.
Diffstat (limited to 'src/cowboy_http.erl')
-rw-r--r-- | src/cowboy_http.erl | 43 |
1 files changed, 34 insertions, 9 deletions
diff --git a/src/cowboy_http.erl b/src/cowboy_http.erl index 5814641..7ad3d2f 100644 --- a/src/cowboy_http.erl +++ b/src/cowboy_http.erl @@ -17,18 +17,38 @@ -module(cowboy_http). %% Parsing. --export([list/2, nonempty_list/2, content_type/1, media_range/2, conneg/2, - language_range/2, entity_tag_match/1, expectation/2, params/2, - http_date/1, rfc1123_date/1, rfc850_date/1, asctime_date/1, - whitespace/2, digits/1, token/2, token_ci/2, quoted_string/2]). +-export([list/2]). +-export([nonempty_list/2]). +-export([content_type/1]). +-export([media_range/2]). +-export([conneg/2]). +-export([language_range/2]). +-export([entity_tag_match/1]). +-export([expectation/2]). +-export([params/2]). +-export([http_date/1]). +-export([rfc1123_date/1]). +-export([rfc850_date/1]). +-export([asctime_date/1]). +-export([whitespace/2]). +-export([digits/1]). +-export([token/2]). +-export([token_ci/2]). +-export([quoted_string/2]). %% Decoding. --export([te_chunked/2, te_identity/2, ce_identity/1]). +-export([te_chunked/2]). +-export([te_identity/2]). +-export([ce_identity/1]). %% Interpretation. --export([connection_to_atom/1, version_to_binary/1, - urldecode/1, urldecode/2, urlencode/1, - urlencode/2, x_www_form_urlencoded/2]). +-export([connection_to_atom/1]). +-export([version_to_binary/1]). +-export([urldecode/1]). +-export([urldecode/2]). +-export([urlencode/1]). +-export([urlencode/2]). +-export([x_www_form_urlencoded/2]). -type method() :: 'OPTIONS' | 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'TRACE' | binary(). @@ -53,7 +73,12 @@ -type headers() :: [{header(), iodata()}]. -type status() :: non_neg_integer() | binary(). --export_type([method/0, uri/0, version/0, header/0, headers/0, status/0]). +-export_type([method/0]). +-export_type([uri/0]). +-export_type([version/0]). +-export_type([header/0]). +-export_type([headers/0]). +-export_type([status/0]). -include_lib("eunit/include/eunit.hrl"). |