quic-go / masque-go

MASQUE: Proxying UDP in HTTP/3, RFC 9298
MIT License
81 stars 9 forks source link

application-defined handlers don't make sense #13

Open marten-seemann opened 6 months ago

marten-seemann commented 6 months ago

The URL should is already encoded in the URI template. Unfortunately, it doesn't seem like the URI template library allows us to extract it though, so we might need to jump through some hoops to obtain it.

marten-seemann commented 6 months ago

On the other hand, we want to give the application a lot of control of the processing of the HTTP request: it should be possible to use HTTP headers, for example for (basic / unprompted / bespoke) authentication.

Maybe we just need to document that it doesn't make sense to configure an URI template with path1, and add it on an HTTP handler for path2?

marten-seemann commented 5 months ago

For inspiration, we should take a look at popular Go proxying libraries like goproxy.