You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some data in transport layer is useful for upper layer. For example, I'd like to check SNI in ClientHello against Host in HTTP Request, also need to take out some info from client cert for further processing.
But looks like the function service_fn() only accept one argument with type hyper::Request. Anyone knows how to overcome the difficulty? Appreciated if there were any sample/pseudo code ..
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Some data in transport layer is useful for upper layer. For example, I'd like to check SNI in
ClientHello
againstHost
in HTTP Request, also need to take out some info from client cert for further processing.But looks like the function
service_fn()
only accept one argument with typehyper::Request
. Anyone knows how to overcome the difficulty? Appreciated if there were any sample/pseudo code ..Beta Was this translation helpful? Give feedback.
All reactions