Replies: 1 comment
-
Hi, as far as I'm aware the only possible way the do this is by implementing your own ServerApp as shown in this example to access the underlying Stream. I have a similar use case, and for now my only solution was to fork pingora, and reimplement a This only works for HTTP/1 afaik |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use
ProxyHttp
to handle websocket upgrade requests, then let fastwebsockets to take the underlyingStream
and take over websocket traffic. I'm having a hard time figuring out how to own thatStream
.ProxyHttp
provides a mut ref toSession
and how is it possible to take the ownership of theStream
in my code? I'm aware ofinto_inner
inHttpSession
(session.downstream_session
), but I can't move it with only a ref toSession
.Please suggest. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions