MCPcopy
hub / github.com/perkeep/perkeep / PathSuffix

Function PathSuffix

internal/httputil/httputil.go:119–119  ·  view source on GitHub ↗

PathSuffix returns a Request's suffix path, if it went via a PrefixHandler.

(req *http.Request)

Source from the content-addressed store, hash-verified

117
118// PathSuffix returns a Request's suffix path, if it went via a PrefixHandler.
119func PathSuffix(req *http.Request) string { return req.Header.Get(PathSuffixHeader) }
120
121// BaseURL returns the base URL (scheme + host and optional port +
122// blobserver prefix) that should be used for requests (and responses)

Callers 15

ServeHTTPMethod · 0.92
ServeHTTPMethod · 0.92
ServeHTTPMethod · 0.92
ServeHTTPMethod · 0.92
ServeHTTPMethod · 0.92
serveHTTPMethod · 0.92
ServeHTTPMethod · 0.92
ServeHTTPMethod · 0.92
wantsBlobRefFunction · 0.92
getSuffixMatchesFunction · 0.92
ServeHTTPMethod · 0.92
serveThumbnailMethod · 0.92

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected