BiagioFesta / wtransport

Async-friendly WebTransport implementation in Rust
Apache License 2.0
460 stars 31 forks source link

Allow rejecting incoming session with forbidden. #78

Closed waywardmonkeys closed 1 year ago

waywardmonkeys commented 1 year ago

This is allowed in the current specification for when validating ORIGIN and deciding to reject the request.

waywardmonkeys commented 1 year ago

A couple of notes:

1) I didn't test this in any running server / interaction. 2) I think that's the right way to chain async methods to call a shared reject, but I don't do much async yet. 3) At some point, this probably needs further extension to support responding with a redirect.

BiagioFesta commented 1 year ago

Thanks