diff options
author | Loïc Hoguin <[email protected]> | 2013-08-26 18:22:23 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-08-26 18:22:23 +0200 |
commit | 0c5a2c3a9097207da803da7ee45cdad2d387a5a4 (patch) | |
tree | 026c465aab70ad370c27a1fbdb8909bbc44d4b62 /src/gun.erl | |
parent | 2b2dfdea1f9859b575990f640e9f29864ab5161e (diff) | |
download | gun-0c5a2c3a9097207da803da7ee45cdad2d387a5a4.tar.gz gun-0c5a2c3a9097207da803da7ee45cdad2d387a5a4.tar.bz2 gun-0c5a2c3a9097207da803da7ee45cdad2d387a5a4.zip |
Remove the response functions
SPDY unfortunately is still completely client-server
and we can't do that according to the specs.
Diffstat (limited to 'src/gun.erl')
-rw-r--r-- | src/gun.erl | 21 |
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), |