diff options
author | Loïc Hoguin <[email protected]> | 2019-07-26 14:25:59 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2019-07-26 14:30:38 +0200 |
commit | 56b7fdd6eb15564ad821885937b03516a03dce4b (patch) | |
tree | 9fa4980d1eb59dbd038f1b4fdd1967be4ed420ba /src/gun_default_event_h.erl | |
parent | 00b0b29eacf3eb8a51273dc43064c6367573c4c4 (diff) | |
download | gun-56b7fdd6eb15564ad821885937b03516a03dce4b.tar.gz gun-56b7fdd6eb15564ad821885937b03516a03dce4b.tar.bz2 gun-56b7fdd6eb15564ad821885937b03516a03dce4b.zip |
Add the transport_changed event
Also test protocol_changed over CONNECT.
Diffstat (limited to 'src/gun_default_event_h.erl')
-rw-r--r-- | src/gun_default_event_h.erl | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gun_default_event_h.erl b/src/gun_default_event_h.erl index 213db06..579fb20 100644 --- a/src/gun_default_event_h.erl +++ b/src/gun_default_event_h.erl @@ -33,12 +33,13 @@ -export([response_trailers/2]). -export([response_end/2]). -export([ws_upgrade/2]). --export([protocol_changed/2]). -export([ws_recv_frame_start/2]). -export([ws_recv_frame_header/2]). -export([ws_recv_frame_end/2]). -export([ws_send_frame_start/2]). -export([ws_send_frame_end/2]). +-export([protocol_changed/2]). +-export([transport_changed/2]). -export([cancel/2]). -export([disconnect/2]). -export([terminate/2]). @@ -97,9 +98,6 @@ response_end(_EventData, State) -> ws_upgrade(_EventData, State) -> State. -protocol_changed(_EventData, State) -> - State. - ws_recv_frame_start(_EventData, State) -> State. @@ -115,6 +113,12 @@ ws_send_frame_start(_EventData, State) -> ws_send_frame_end(_EventData, State) -> State. +protocol_changed(_EventData, State) -> + State. + +transport_changed(_EventData, State) -> + State. + cancel(_EventData, State) -> State. |