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
it's already supported. you can use xitca's http library to handle webtransport just fine like this example:
use quinn::ServerConfig;use xitca_io::net::UdpStream;use xitca_service::fn_service;fnmain() -> std::io::Result<()>{
xitca_server::Builder::new().bind_h3("wt","localhost:8080",h3_config(),fn_service(handler)?
.build().wait()}asyncfnhandler(stream:UdpStream) -> io::Result<()>{let conn = stream.connecting().await?;// do whatever with h3 connection.Ok(())}fnh3_config() -> ServerConfig{todo!("your quinn config goes here")}
There is no plan to support it inside xitca-web yet. The webtransport API is too alien to a web framework and in most time you end up with hijacking the connection and dealing with ugly low level code anyway.
How is the Web Transport support with xitca?
The text was updated successfully, but these errors were encountered: