mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Fix reply/4 spec
There is wrong -spec of reply/4 function 3rd parametr type must be same as [#http_req spec](https://github.com/ninenines/cowboy/blob/master/src/cowboy_req.erl#L140)
This commit is contained in:
parent
02b1b28178
commit
8fc6906dbb
1 changed files with 2 additions and 1 deletions
|
@ -720,7 +720,8 @@ reply(Status, Headers, Req=#http_req{resp_body=Body}) ->
|
|||
reply(Status, Headers, Body, Req).
|
||||
|
||||
-spec reply(cowboy:http_status(), cowboy:http_headers(),
|
||||
iodata() | {non_neg_integer() | resp_body_fun()}, Req)
|
||||
iodata() | resp_body_fun() | {non_neg_integer(), resp_body_fun()}
|
||||
| {chunked, resp_chunked_fun()}, Req)
|
||||
-> Req when Req::req().
|
||||
reply(Status, Headers, Body, Req=#http_req{
|
||||
socket=Socket, transport=Transport,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue