func net/http.StripPrefix
7 uses
net/http (current package)
server.go#L2098: func StripPrefix(prefix string, h Handler) Handler {
golang.org/x/pkgsite/internal/frontend
server.go#L134: handle("/third_party/", http.StripPrefix("/third_party", http.FileServer(http.Dir(s.thirdPartyPath))))
server.go#L158: middleware.Stats()(http.StripPrefix("/detail-stats", s.errorHandler(s.serveDetails))))
server.go#L613: return http.StripPrefix("/static/", http.FileServer(http.Dir(staticPath)))
golang.org/x/pkgsite/internal/worker
server.go#L153: handle("/fetch/", http.StripPrefix("/fetch", rmw(http.HandlerFunc(s.handleFetch))))
server.go#L205: handle("/delete/", http.StripPrefix("/delete", rmw(s.errorHandler(s.handleDelete))))
server.go#L211: handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir(s.staticPath.String()))))
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |