Open seanmonstar opened 2 years ago
cc @piscisaureus
@lucacasonato This would work for us right? AFAICT there would be no need to send the ORIGIN frame after processing the first request.
Yeah, this looks good. We can determine the value of the ORIGIN frame based on an SNI field in the TLS handshake.
I have no preference between strings and (Scheme, Authority)
.
This proposes adding an option to the
h2::server::Builder
config such that it sends the ORIGIN frame to connections.origin
is added to the h2::server::Builder` struct.(Scheme, Authority)
tuples, since we have those types in thehttp
crate.src/frame/origin.rs
.src/proto/connection.rs
file such thatConnection
has anOption<Origin>
, and if set, is written after the initialSETTINGS
frame.