YarpResource.WithStaticFiles

Method
📦 Aspire.Hosting.Yarp v17.0.0
type YarpResource interface {
// ... omitted for brevity
WithStaticFiles(options ...*WithStaticFilesOptions) YarpResource
}

Signature

methodWithStaticFilesbuilder
Enables static file serving in the YARP resource.
WithStaticFiles(options ...*WithStaticFilesOptions) YarpResource
options...*WithStaticFilesOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithStaticFilesOptions argument.

SourcePath*string
YarpResource

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: