mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Fix spec for cowboy_http_req:reply/4.
This commit is contained in:
parent
fdd9d4c0ef
commit
545116edfa
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ body(Length, Req=#http_req{socket=Socket, transport=Transport, body_state=waitin
|
||||||
%% Response API.
|
%% Response API.
|
||||||
|
|
||||||
-spec reply(Code::http_status(), Headers::http_headers(),
|
-spec reply(Code::http_status(), Headers::http_headers(),
|
||||||
Body::iolist(), Req::#http_req{}) -> ok.
|
Body::iolist(), Req::#http_req{}) -> {ok, Req::#http_req{}}.
|
||||||
%% @todo Don't be naive about the headers!
|
%% @todo Don't be naive about the headers!
|
||||||
reply(Code, Headers, Body, Req=#http_req{socket=Socket,
|
reply(Code, Headers, Body, Req=#http_req{socket=Socket,
|
||||||
transport=Transport, connection=Connection,
|
transport=Transport, connection=Connection,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue