mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Add cowboy_req:scheme/1
This commit is contained in:
parent
c33b4cec96
commit
26c75b57b1
1 changed files with 5 additions and 0 deletions
|
@ -20,6 +20,7 @@
|
||||||
-export([method/1]).
|
-export([method/1]).
|
||||||
-export([version/1]).
|
-export([version/1]).
|
||||||
-export([peer/1]).
|
-export([peer/1]).
|
||||||
|
-export([scheme/1]).
|
||||||
-export([host/1]).
|
-export([host/1]).
|
||||||
-export([host_info/1]).
|
-export([host_info/1]).
|
||||||
-export([port/1]).
|
-export([port/1]).
|
||||||
|
@ -198,6 +199,10 @@ version(#{version := Version}) ->
|
||||||
peer(#{peer := Peer}) ->
|
peer(#{peer := Peer}) ->
|
||||||
Peer.
|
Peer.
|
||||||
|
|
||||||
|
-spec scheme(req()) -> binary().
|
||||||
|
scheme(#{scheme := Scheme}) ->
|
||||||
|
Scheme.
|
||||||
|
|
||||||
-spec host(req()) -> binary().
|
-spec host(req()) -> binary().
|
||||||
host(#{host := Host}) ->
|
host(#{host := Host}) ->
|
||||||
Host.
|
Host.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue