aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_req.erl
diff options
context:
space:
mode:
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 583a3ab..e067ea5 100644
--- a/src/cowboy_req.erl
+++ b/src/cowboy_req.erl
@@ -109,6 +109,7 @@
-export([set_buffer/2]).
-export([set_bindings/4]).
-export([get_resp_state/1]).
+-export([get_buffer/1]).
%% Misc API.
-export([compact/1]).
@@ -955,6 +956,11 @@ set_bindings(HostInfo, PathInfo, Bindings, Req) ->
get_resp_state(#http_req{resp_state=RespState}) ->
RespState.
+%% @private
+-spec get_buffer(req()) -> binary().
+get_buffer(#http_req{buffer=Buffer}) ->
+ Buffer.
+
%% Misc API.
%% @doc Compact the request data by removing all non-system information.