July 2017
Beginner to intermediate
358 pages
10h 54m
English
The StripPrefix function returns a handler that serves HTTP requests by removing the given prefix from the request URL's path and then invoking h handler. If a path does not exist, then StripPrefix will reply with an HTTP 404 not found error:
func StripPrefix(prefix string, h Handler) Handler
Read now
Unlock full access