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
A nice feature of http.Mux is that it can be used as a handler, so users can set up separate parts of an application on separate muxes that share a common configuration (e.g. a set of interceptors) and then install them on the root mux.
This is currently not possible with GSW, and we should seriously consider doing it.
The text was updated successfully, but these errors were encountered:
To clarify, you are not referring to the safehttp.ServeMux being composable with http.Mux, but with itself, i.e.:
var m1 safehttp.ServeMux
var m2 safehttp.ServeMux
var rootMux safehttp.ServeMux
// These two lines below would not compile.
rootMux.Handle(..., m1)
rootMux.Handle(..., m2)
A nice feature of http.Mux is that it can be used as a handler, so users can set up separate parts of an application on separate muxes that share a common configuration (e.g. a set of interceptors) and then install them on the root mux.
This is currently not possible with GSW, and we should seriously consider doing it.
The text was updated successfully, but these errors were encountered: