http.ServeMux hardcodes the 404 and 405 responses, so sim cannot customize them.
Proposed API:
app.SetNotFoundHandler(h http.Handler)
app.SetMethodNotAllowedHandler(h http.Handler)
Defaults stay identical to http.ServeMux behavior; fully backward compatible.
Related:
golang/go#65648
http.ServeMuxhardcodes the 404 and 405 responses, so sim cannot customize them.Proposed API:
Defaults stay identical to http.ServeMux behavior; fully backward compatible.
Related:
golang/go#65648