mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 20:50:24 +00:00
Add man pages for the parse/match/binding cowboy_req functions
This commit is contained in:
parent
bd34dfdedd
commit
7b248e5163
8 changed files with 371 additions and 7 deletions
|
@ -8,10 +8,12 @@ cowboy_req:header - HTTP header
|
|||
|
||||
[source,erlang]
|
||||
----
|
||||
header(Name :: binary(), Req) -> header(Name, Req, undefined)
|
||||
header(Name :: binary(), Req, Default) -> binary() | Default
|
||||
header(Name, Req) -> header(Name, Req, undefined)
|
||||
header(Name, Req, Default) -> binary() | Default
|
||||
|
||||
Req :: cowboy_req:req()
|
||||
Name :: binary()
|
||||
Req :: cowboy_req:req()
|
||||
Default :: any()
|
||||
----
|
||||
|
||||
Return the value for the given HTTP header.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue