diff options
author | Loïc Hoguin <[email protected]> | 2011-10-01 02:32:20 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-10-01 02:32:20 +0200 |
commit | ce26d7090b178c84d1dde1be3f4dc892138b8667 (patch) | |
tree | d30657b7e1e0902cc3438441fad50349b2cc460d /src/cowboy_http_req.erl | |
parent | 6572d4d374abb548cf4659b5423c7f785762e04b (diff) | |
download | cowboy-ce26d7090b178c84d1dde1be3f4dc892138b8667.tar.gz cowboy-ce26d7090b178c84d1dde1be3f4dc892138b8667.tar.bz2 cowboy-ce26d7090b178c84d1dde1be3f4dc892138b8667.zip |
Rename the type cowboy_dispatcher:path_tokens/0 to :tokens/0
Diffstat (limited to 'src/cowboy_http_req.erl')
-rw-r--r-- | src/cowboy_http_req.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cowboy_http_req.erl b/src/cowboy_http_req.erl index ead9831..1ea656f 100644 --- a/src/cowboy_http_req.erl +++ b/src/cowboy_http_req.erl @@ -67,14 +67,14 @@ peer(Req) -> {Req#http_req.peer, Req}. %% @doc Return the tokens for the hostname requested. --spec host(#http_req{}) -> {cowboy_dispatcher:path_tokens(), #http_req{}}. +-spec host(#http_req{}) -> {cowboy_dispatcher:tokens(), #http_req{}}. host(Req) -> {Req#http_req.host, Req}. %% @doc Return the extra host information obtained from partially matching %% the hostname using <em>'...'</em>. -spec host_info(#http_req{}) - -> {cowboy_dispatcher:path_tokens() | undefined, #http_req{}}. + -> {cowboy_dispatcher:tokens() | undefined, #http_req{}}. host_info(Req) -> {Req#http_req.host_info, Req}. @@ -93,14 +93,14 @@ port(Req) -> %% Following RFC2396, this function may return path segments containing any %% character, including <em>/</em> if, and only if, a <em>/</em> was escaped %% and part of a path segment in the path requested. --spec path(#http_req{}) -> {cowboy_dispatcher:path_tokens(), #http_req{}}. +-spec path(#http_req{}) -> {cowboy_dispatcher:tokens(), #http_req{}}. path(Req) -> {Req#http_req.path, Req}. %% @doc Return the extra path information obtained from partially matching %% the patch using <em>'...'</em>. -spec path_info(#http_req{}) - -> {cowboy_dispatcher:path_tokens() | undefined, #http_req{}}. + -> {cowboy_dispatcher:tokens() | undefined, #http_req{}}. path_info(Req) -> {Req#http_req.path_info, Req}. |