Notable difference from the net/http.StripPrefix: it panics when a prefix cannot be matched. This is clearly a server configuration error.
In order to reduce complexity, the IncomingRequest.URL field is no longer there and was replaced by a method. IncomingRequest used to contain req and URL fields, the latter referencing the former. Removing the URL field removed the cross-referencing.
Notable difference from the
net/http.StripPrefix
: it panics when a prefix cannot be matched. This is clearly a server configuration error.In order to reduce complexity, the
IncomingRequest.URL
field is no longer there and was replaced by a method.IncomingRequest
used to containreq
andURL
fields, the latter referencing the former. Removing theURL
field removed the cross-referencing.Fixes #316.