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
'Declaration
Public Property OnPrepareResponse As Action(Of StaticFileResponseContext)
Get
Set
'Usage
Dim instance As StaticFileOptions
Dim value As Action(Of StaticFileResponseContext)
value = instance.OnPrepareResponse
instance.OnPrepareResponse = value
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
function get OnPrepareResponse () : Action<StaticFileResponseContext>
function set OnPrepareResponse (value : Action<StaticFileResponseContext>)
Property Value
Type: System.Action<StaticFileResponseContext>
Returns Action<T>.