mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Add the private get_resp_state/1 function used by cowboy_protocol
This commit is contained in:
parent
c1dd5b5176
commit
e55ec7d43d
2 changed files with 7 additions and 1 deletions
|
@ -108,6 +108,7 @@
|
|||
-export([add_header/3]).
|
||||
-export([set_buffer/2]).
|
||||
-export([set_bindings/4]).
|
||||
-export([get_resp_state/1]).
|
||||
|
||||
%% Misc API.
|
||||
-export([compact/1]).
|
||||
|
@ -949,6 +950,11 @@ set_bindings(HostInfo, PathInfo, Bindings, Req) ->
|
|||
Req#http_req{host_info=HostInfo, path_info=PathInfo,
|
||||
bindings=Bindings}.
|
||||
|
||||
%% @private
|
||||
-spec get_resp_state(req()) -> locked | waiting | chunks | done.
|
||||
get_resp_state(#http_req{resp_state=RespState}) ->
|
||||
RespState.
|
||||
|
||||
%% Misc API.
|
||||
|
||||
%% @doc Compact the request data by removing all non-system information.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue