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:
parent
3633bceac5
commit
6e8b907ae2
3 changed files with 26 additions and 15 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue