feat(client): allow to set a specific sni hostname per request#1171
feat(client): allow to set a specific sni hostname per request#1171
Conversation
f1b82f5 to
d45c9ff
Compare
2c9b9e8 to
e20d8af
Compare
bf5cce0 to
8f47b24
Compare
|
Sorry for late review. I have looked into this last month but I cant decide if we should follow this "rule" in all xitca crates: Line 124 in cec4ef4 Ideally we want to use |
|
Not sure what's the best here, we could either :
It's mainly a api difference when writing middleware, all works, but having those fields in either a specific request or in the extensions of the request reduce future bc break if we want to add more field (so either 1 or 2). Personally I would go for a specific request struct, where we add all fields that the builder allow to set, extensions point should be only used for data exchange between middleware if needed. |
|
There is 3 PR that add information on the service request :
The first two, i did not use the extensions system (because value implement Copy), and put them in the ServiceRequest struct directly, but if we decide to have a specific request struct there may be added there. Let me know what you want to do for those extra fields and i will adapt others PR accordingly |
8f47b24 to
69fd6bb
Compare
69fd6bb to
82f77b8
Compare
This allow to set a specific hostname for sni, use the request hostname like before by default, but allow to change it if needed.