mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-16 13:10:24 +00:00
Req#http_req.peer can be 'undefined'; update spec accordingly
This commit is contained in:
parent
0dc063ab7d
commit
d1898b969e
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ method(Req) ->
|
|||
version(Req) ->
|
||||
Req#http_req.version.
|
||||
|
||||
-spec peer(req()) -> {inet:ip_address(), inet:port_number()}.
|
||||
-spec peer(req()) -> {inet:ip_address(), inet:port_number()} | undefined.
|
||||
peer(Req) ->
|
||||
Req#http_req.peer.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue