I'm using CherryPy for a web server, but would like it to handle HTTP/1.1 Upgrade
requests. Thus, when a client sends:
OPTIONS * HTTP/1.1
Upgrade: NEW_PROTOCOL/1.0
Connection: Upgrade
I'd like the server to hand the connection off to some NEW_PROTOCOL
handler after responding with the necessary HTTP/1.1 101 Switching Protocols...
, as specified in RFC 2817.
I'm pretty new to CherryPy, and couldn't find anything in the documentation on how to handle specific client requests such as the above. If someone could point me to a tutorial or parts of the CherryPy documentation or even a solution, that would be very helpful.