KestrunResponse.WriteRedirectResponse method

Writes an HTTP redirect response with the specified URL and optional message.

public void WriteRedirectResponse(string url, string? message = null)
parameter description
url The URL to redirect to.
message An optional message to include in the response body.

See Also