0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 04:30:25 +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:
Yakov 2015-01-14 18:43:11 +03:00 committed by Kozlov Yakov
parent 02b1b28178
commit 8fc6906dbb

View file

@ -720,7 +720,8 @@ reply(Status, Headers, Req=#http_req{resp_body=Body}) ->
reply(Status, Headers, Body, Req). reply(Status, Headers, Body, Req).
-spec reply(cowboy:http_status(), cowboy:http_headers(), -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(). -> Req when Req::req().
reply(Status, Headers, Body, Req=#http_req{ reply(Status, Headers, Body, Req=#http_req{
socket=Socket, transport=Transport, socket=Socket, transport=Transport,