aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/gun.erl')
-rw-r--r--src/gun.erl21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/gun.erl b/src/gun.erl
index 011eed1..21666ec 100644
--- a/src/gun.erl
+++ b/src/gun.erl
@@ -37,10 +37,6 @@
-export([request/4]).
-export([request/5]).
-%% Responses.
--export([response/4]).
--export([response/5]).
-
%% Streaming data.
-export([data/4]).
@@ -148,15 +144,6 @@ request(ServerPid, Method, Path, Headers, Body) ->
_ = ServerPid ! {request, self(), StreamRef, Method, Path, Headers, Body},
StreamRef.
-%% Responses.
-
-response(ServerPid, StreamRef, Status, Headers) ->
- _ = ServerPid ! {response, self(), StreamRef, Status, Headers},
- ok.
-response(ServerPid, StreamRef, Status, Headers, Body) ->
- _ = ServerPid ! {response, self(), StreamRef, Status, Headers, Body},
- ok.
-
%% Streaming data.
data(ServerPid, StreamRef, IsFin, Data) ->
@@ -295,14 +282,6 @@ loop(State=#state{parent=Parent, owner=Owner, host=Host,
ProtoState2 = Protocol:request(ProtoState,
StreamRef, Method, Host, Path, Headers, Body),
loop(State#state{protocol_state=ProtoState2});
- {response, Owner, StreamRef, Status, Headers} ->
- ProtoState2 = Protocol:response(ProtoState,
- StreamRef, Status, Headers),
- loop(State#state{protocol_state=ProtoState2});
- {response, Owner, StreamRef, Status, Headers, Body} ->
- ProtoState2 = Protocol:response(ProtoState,
- StreamRef, Status, Headers, Body),
- loop(State#state{protocol_state=ProtoState2});
{data, Owner, StreamRef, IsFin, Data} ->
ProtoState2 = Protocol:data(ProtoState,
StreamRef, IsFin, Data),