0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

Pass the HTTP/2 switch_protocol event to stream handlers

To accomplish this the code for sending the 101 response was
moved to the cowboy_http2 module.
This commit is contained in:
Loïc Hoguin 2017-04-18 14:06:34 +02:00
parent 3633bceac5
commit 6e8b907ae2
No known key found for this signature in database
GPG key ID: 71366FF21851DF03
3 changed files with 26 additions and 15 deletions

View file

@ -18,6 +18,11 @@ Cowboy calls the stream handler for nearly all events
related to a stream. Exceptions vary depending on the
protocol.
Extra care must be taken when implementing stream handlers
to ensure compatibility. While some modification of the
events and commands is allowed, it is generally not a good
idea to completely omit them.
== Callbacks
Stream handlers must implement the following interface: