Dela via


ResponseExtensions.Clear(HttpResponse) Method

Definition

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.

Applies to