mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-16 13:10:24 +00:00
Move the dispatcher related types into cowboy_dispatcher.
This commit is contained in:
parent
6712eaa5c8
commit
2beb5c8206
5 changed files with 17 additions and 14 deletions
|
@ -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}.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue