YarpResource.WithStaticFiles
Method
type YarpResource interface { // ... omitted for brevity WithStaticFiles(options ...*WithStaticFilesOptions) YarpResource}Signature
method
WithStaticFiles builderEnables static file serving in the YARP resource.
WithStaticFiles(options ...*WithStaticFilesOptions) YarpResourceParameters
options...*WithStaticFilesOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithStaticFilesOptions argument.
SourcePath *stringReturns
YarpResource Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: