Прочетете на английски

Споделяне чрез


ResponseExtensions Class

Definition

Extension methods for HttpResponse.

C#
public static class ResponseExtensions
Inheritance
ResponseExtensions

Methods

Clear(HttpResponse)

Clears the HTTP response.

This invocation resets the response headers, response status code, and response body.

Redirect(HttpResponse, String, Boolean, Boolean)

Returns a redirect response (HTTP 301, HTTP 302, HTTP 307 or HTTP 308) to the client.

Applies to

Продукт Версии
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0