aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-09-26 14:02:05 +0200
committerLoïc Hoguin <[email protected]>2018-09-26 14:02:43 +0200
commit679e3bf1c1dcfeefd405d4edaa060b8350c9a4cf (patch)
treeb2b22a9f5798887be7575969adbe75bfc91c5e4c
parent889a23d5440c5e85262b84463cdf37206134e25e (diff)
downloadgun-679e3bf1c1dcfeefd405d4edaa060b8350c9a4cf.tar.gz
gun-679e3bf1c1dcfeefd405d4edaa060b8350c9a4cf.tar.bz2
gun-679e3bf1c1dcfeefd405d4edaa060b8350c9a4cf.zip
Remove gun:dbg_send_raw/2
The same can now be achieved using gun:info to retrieve the socket. This function was not documented and was only used in the old Cowboy test suite.
-rw-r--r--src/gun.erl13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/gun.erl b/src/gun.erl
index bb7ac1d..0095169 100644
--- a/src/gun.erl
+++ b/src/gun.erl
@@ -83,9 +83,6 @@
-export([ws_upgrade/4]).
-export([ws_send/2]).
-%% Debug.
--export([dbg_send_raw/2]).
-
%% Internals.
-export([start_link/4]).
-export([proc_lib_hack/5]).
@@ -640,13 +637,6 @@ ws_send(ServerPid, Frames) ->
_ = ServerPid ! {ws_send, self(), Frames},
ok.
-%% Debug.
-
--spec dbg_send_raw(pid(), iodata()) -> ok.
-dbg_send_raw(ServerPid, Data) ->
- _ = ServerPid ! {dbg_send_raw, self(), Data},
- ok.
-
%% Internals.
start_link(Owner, Host, Port, Opts) ->
@@ -854,9 +844,6 @@ loop(State=#state{parent=Parent, owner=Owner, owner_ref=OwnerRef,
{system, From, Request} ->
sys:handle_system_msg(Request, From, Parent, ?MODULE, [],
{loop, State});
- {dbg_send_raw, Owner, Data} ->
- Transport:send(Socket, Data),
- loop(State);
{ws_upgrade, _, StreamRef, _, _} ->
Owner ! {gun_error, self(), StreamRef, {badstate,
"Websocket is only supported over HTTP/1.1."}},