MCPcopy
hub / github.com/openfaas/faas / FunctionPrefixTrimmingURLPathTransformer

Struct FunctionPrefixTrimmingURLPathTransformer

gateway/pkg/middleware/resolver.go:116–117  ·  view source on GitHub ↗

FunctionPrefixTrimmingURLPathTransformer removes the "/function/servicename/" prefix from the URL path.

Source from the content-addressed store, hash-verified

114
115// FunctionPrefixTrimmingURLPathTransformer removes the "/function/servicename/" prefix from the URL path.
116type FunctionPrefixTrimmingURLPathTransformer struct {
117}
118
119// Transform removes the "/function/servicename/" prefix from the URL path.
120func (f FunctionPrefixTrimmingURLPathTransformer) Transform(r *http.Request) string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected