StaticFileOptions Class

 

Options for serving static files

Namespace:   Microsoft.Owin.StaticFiles
Assembly:  Microsoft.Owin.StaticFiles (in Microsoft.Owin.StaticFiles.dll)


public ref class StaticFileOptions : SharedOptionsBase<StaticFileOptions^>

NameDescription
System_CAPS_pubmethodStaticFileOptions()

Defaults to all request paths in the current physical directory

System_CAPS_pubmethodStaticFileOptions(SharedOptions^)

Defaults to all request paths in the current physical directory

NameDescription
System_CAPS_pubpropertyContentTypeProvider

Used to map files to content-types.

System_CAPS_pubpropertyDefaultContentType

The default content type for a request if the ContentTypeProvider cannot determine one. None is provided by default, so the client must determine the format themselves. http://www.w3.org/Protocols/rfc2616/rfc2616-sec7.html#sec7

System_CAPS_pubpropertyFileSystem

The file system used to locate resources(Inherited from SharedOptionsBase<T>.)

System_CAPS_pubpropertyOnPrepareResponse

Called after the status code and headers have been set, but before the body has been written. This can be used to add or change the response headers.

System_CAPS_pubpropertyRequestPath

The relative request path that maps to static resources.(Inherited from SharedOptionsBase<T>.)

System_CAPS_pubpropertyServeUnknownFileTypes

If the file is not a recognized content-type should it be served? Default: false.

System_CAPS_protpropertySharedOptions

Options common to several middleware components(Inherited from SharedOptionsBase<T>.)

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: