Gateway Example question? https://github.com/hyperium/hyper/blob/master/examples/gateway.rs #3774
-
in the gateway example. we create a new connection for each request that comes in from the listener. is there a way to do this without the reconnection on each request? I don't want to redo the handshake constantly. I would love it if every message simply gets forwarded. my use case is to check cookies and see if the user has valid permissions and if they do I would forward them along. |
Beta Was this translation helpful? Give feedback.
Answered by
seanmonstar
Oct 24, 2024
Replies: 1 comment
-
You can look at |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ZNackasha
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can look at
hyper_util::client::legacy::Client
for a connection pool.