MCPcopy Create free account
hub / github.com/kataras/iris / ResolveHTTPFS

Method ResolveHTTPFS

aliases.go:842–844  ·  view source on GitHub ↗

ResolveHTTPFS modifies the default way to resolve a filesystem by any type of value. It affects the Application's API Builder's `HandleDir` method.

(patchFunc func(fsOrDir interface{}) http.FileSystem)

Source from the content-addressed store, hash-verified

840// ResolveHTTPFS modifies the default way to resolve a filesystem by any type of value.
841// It affects the Application's API Builder's `HandleDir` method.
842func (cp *ContextPatches) ResolveHTTPFS(patchFunc func(fsOrDir interface{}) http.FileSystem) {
843 context.ResolveHTTPFS = patchFunc
844}
845
846// ResolveHTTPFS modifies the default way to resolve a filesystem by any type of value.
847// It affects the view engine's filesystem resolver.

Callers 1

HandleDirMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected