Share via


StaticFileOptions.OnPrepareResponse Property

 

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.

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

Syntax

public Action<StaticFileResponseContext> OnPrepareResponse { get; set; }
public:
property Action<StaticFileResponseContext^>^ OnPrepareResponse {
    Action<StaticFileResponseContext^>^ get();
    void set(Action<StaticFileResponseContext^>^ value);
}
member OnPrepareResponse : Action<StaticFileResponseContext> with get, set
Public Property OnPrepareResponse As Action(Of StaticFileResponseContext)

Property Value

Type: System.Action<StaticFileResponseContext>

Returns Action<T>.

See Also

StaticFileOptions Class
Microsoft.Owin.StaticFiles Namespace

Return to top