mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-16 05:00:24 +00:00
Fix cowboy_http_req:chunk/2 spec
This commit is contained in:
parent
d9da5334d2
commit
bd90df1f5e
1 changed files with 1 additions and 1 deletions
|
@ -383,7 +383,7 @@ chunked_reply(Status, Headers, Req=#http_req{socket=Socket, transport=Transport,
|
|||
%% @doc Send a chunk of data.
|
||||
%%
|
||||
%% A chunked reply must have been initiated before calling this function.
|
||||
-spec chunk(iodata(), #http_req{}) -> ok.
|
||||
-spec chunk(iodata(), #http_req{}) -> ok | {error, atom()}.
|
||||
chunk(_Data, #http_req{socket=_Socket, transport=_Transport, method='HEAD'}) ->
|
||||
ok;
|
||||
chunk(Data, #http_req{socket=Socket, transport=Transport, resp_state=chunks}) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue