0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-16 05:00:24 +00:00

Req#http_req.peer can be 'undefined'; update spec accordingly

This commit is contained in:
Andrew Houghton 2014-10-01 09:55:51 -04:00
parent 0dc063ab7d
commit d1898b969e

View file

@ -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.