ResponseExtensions.Clear(HttpResponse) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Clears the HTTP response.
This invocation resets the response headers, response status code, and response body.
public:
[System::Runtime::CompilerServices::Extension]
static void Clear(Microsoft::AspNetCore::Http::HttpResponse ^ response);
public static void Clear (this Microsoft.AspNetCore.Http.HttpResponse response);
static member Clear : Microsoft.AspNetCore.Http.HttpResponse -> unit
<Extension()>
Public Sub Clear (response As HttpResponse)
Parameters
- response
- HttpResponse
The HttpResponse to clear.