mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 04:30:25 +00:00
Add the private get_buffer/1 function used by cowboy_protocol
This commit is contained in:
parent
e55ec7d43d
commit
cf0e905c52
2 changed files with 7 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue