diff options
author | Loïc Hoguin <[email protected]> | 2019-07-13 17:55:20 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2019-07-13 17:55:20 +0200 |
commit | c7138443995ebd56f061b85e5ee0aebb5c04a00e (patch) | |
tree | 823defd10c1e09f30af3f954296cf9b73dfe4b8d /src/gun_default_event_h.erl | |
parent | 071599cbcd25cd2669e26d23a6e202e0275f191a (diff) | |
download | gun-c7138443995ebd56f061b85e5ee0aebb5c04a00e.tar.gz gun-c7138443995ebd56f061b85e5ee0aebb5c04a00e.tar.bz2 gun-c7138443995ebd56f061b85e5ee0aebb5c04a00e.zip |
Add ws_upgrade/protocol_changed events
And ensure that Websocket triggers all the request/response
events.
Diffstat (limited to 'src/gun_default_event_h.erl')
-rw-r--r-- | src/gun_default_event_h.erl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gun_default_event_h.erl b/src/gun_default_event_h.erl index ff6f951..6ef2e11 100644 --- a/src/gun_default_event_h.erl +++ b/src/gun_default_event_h.erl @@ -26,6 +26,8 @@ -export([response_headers/2]). -export([response_trailers/2]). -export([response_end/2]). +-export([ws_upgrade/2]). +-export([protocol_changed/2]). -export([disconnect/2]). -export([terminate/2]). @@ -62,6 +64,12 @@ response_trailers(_EventData, State) -> response_end(_EventData, State) -> State. +ws_upgrade(_EventData, State) -> + State. + +protocol_changed(_EventData, State) -> + State. + disconnect(_EventData, State) -> State. |