aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_req.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-09-17 00:48:11 +0200
committerLoïc Hoguin <[email protected]>2012-09-17 13:57:28 +0200
commite55ec7d43d6c06131afe61c8087ca9af97db35fe (patch)
treeccaa9db8003587bb5619959fddd42f66cb769fc1 /src/cowboy_req.erl
parentc1dd5b5176813d048654c66550a434ef30f96908 (diff)
downloadcowboy-e55ec7d43d6c06131afe61c8087ca9af97db35fe.tar.gz
cowboy-e55ec7d43d6c06131afe61c8087ca9af97db35fe.tar.bz2
cowboy-e55ec7d43d6c06131afe61c8087ca9af97db35fe.zip
Add the private get_resp_state/1 function used by cowboy_protocol
Diffstat (limited to 'src/cowboy_req.erl')
-rw-r--r--src/cowboy_req.erl6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cowboy_req.erl b/src/cowboy_req.erl
index acee88b..583a3ab 100644
--- a/src/cowboy_req.erl
+++ b/src/cowboy_req.erl
@@ -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.