aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http_req.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-04-18 13:24:27 +0200
committerLoïc Hoguin <[email protected]>2011-04-18 13:24:27 +0200
commit2beb5c8206cf33f04ef778ebc67839c1bd71add8 (patch)
tree886f908b1a16e7de0aecbf2bf25f6b405f8b67ee /src/cowboy_http_req.erl
parent6712eaa5c8196dc1ba179257d050b131959c2a1b (diff)
downloadcowboy-2beb5c8206cf33f04ef778ebc67839c1bd71add8.tar.gz
cowboy-2beb5c8206cf33f04ef778ebc67839c1bd71add8.tar.bz2
cowboy-2beb5c8206cf33f04ef778ebc67839c1bd71add8.zip
Move the dispatcher related types into cowboy_dispatcher.
Diffstat (limited to 'src/cowboy_http_req.erl')
-rw-r--r--src/cowboy_http_req.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cowboy_http_req.erl b/src/cowboy_http_req.erl
index ba37fba..f8b54e4 100644
--- a/src/cowboy_http_req.erl
+++ b/src/cowboy_http_req.erl
@@ -55,7 +55,8 @@ peer(Req=#http_req{socket=Socket, transport=Transport, peer=undefined}) ->
peer(Req) ->
{Req#http_req.peer, Req}.
--spec host(Req::#http_req{}) -> {Host::path_tokens(), Req::#http_req{}}.
+-spec host(Req::#http_req{})
+ -> {Host::cowboy_dispatcher:path_tokens(), Req::#http_req{}}.
host(Req) ->
{Req#http_req.host, Req}.
@@ -63,7 +64,8 @@ host(Req) ->
raw_host(Req) ->
{Req#http_req.raw_host, Req}.
--spec path(Req::#http_req{}) -> {Path::path_tokens(), Req::#http_req{}}.
+-spec path(Req::#http_req{})
+ -> {Path::cowboy_dispatcher:path_tokens(), Req::#http_req{}}.
path(Req) ->
{Req#http_req.path, Req}.