aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_dispatcher.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-08-27 12:16:07 +0200
committerLoïc Hoguin <[email protected]>2012-08-27 12:16:07 +0200
commita5e75219f0bb9602178314a00eb9e0f9c22bcac6 (patch)
treed09cce41044ae6d6995a92b2a24126451925f0a6 /src/cowboy_dispatcher.erl
parente4124de2c71564d37b3732ede0fe1542de1d6f99 (diff)
downloadcowboy-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_dispatcher.erl')
-rw-r--r--src/cowboy_dispatcher.erl9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/cowboy_dispatcher.erl b/src/cowboy_dispatcher.erl
index 00c067c..e0f121e 100644
--- a/src/cowboy_dispatcher.erl
+++ b/src/cowboy_dispatcher.erl
@@ -16,7 +16,10 @@
%% @doc Dispatch requests according to a hostname and path.
-module(cowboy_dispatcher).
--export([split_host/1, split_path/2, match/3]). %% API.
+%% API.
+-export([split_host/1]).
+-export([split_path/2]).
+-export([match/3]).
-type bindings() :: list({atom(), binary()}).
-type tokens() :: list(binary()).
@@ -25,7 +28,9 @@
-type dispatch_rule() :: {Host::match_rule(), Path::dispatch_path()}.
-type dispatch_rules() :: list(dispatch_rule()).
--export_type([bindings/0, tokens/0, dispatch_rules/0]).
+-export_type([bindings/0]).
+-export_type([tokens/0]).
+-export_type([dispatch_rules/0]).
-include_lib("eunit/include/eunit.hrl").