Closed icode closed 4 years ago
Hi @icode, thanks for the report. Do you have an idea about API for that feature?
Like servlet HttpUpgradeHandler
, netty https://netty.io/4.1/api/io/netty/handler/codec/http2/CleartextHttp2ServerUpgradeHandler.html .
Maybe we can get pipeline involved?
Add HttpUpgrade
PipelinePhase?
It looks like we have a special OutgoingContent
for the upgrade: https://api.ktor.io/1.2.6/io.ktor.http.content/-outgoing-content/-protocol-upgrade/index.html
I found Websocket use this api, it's same like HttpUpgrade
Can you write him into the document?
@cy6erGn0m
I can't found HTTP Upgrade Support API. https://developer.mozilla.org/en-US/docs/Web/HTTP/Protocol_upgrade_mechanism
It's very useful, like for gRPC, custom protocol