From 56b7fdd6eb15564ad821885937b03516a03dce4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 26 Jul 2019 14:25:59 +0200 Subject: Add the transport_changed event Also test protocol_changed over CONNECT. --- src/gun_default_event_h.erl | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/gun_default_event_h.erl') 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. -- cgit v1.2.3