mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Fixed spec for cowboy_req:reply/4
This commit is contained in:
parent
0c15b9216b
commit
ca086b73fd
1 changed files with 1 additions and 1 deletions
|
@ -811,7 +811,7 @@ 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)
|
||||||
-> {ok, Req} when Req::req().
|
-> {ok, 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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue