Microsoft.AspNetCore.Http.HttpResults Namespace

Classes

Accepted

An IResult that on execution will write an object to the response with status code Accepted (202) and Location header. Targets a registered route.

Accepted<TValue>

An IResult that on execution will write an object to the response with status code Accepted (202) and Location header. Targets a registered route.

AcceptedAtRoute

An IResult that on execution will write an object to the response with status code Accepted (202) and Location header. Targets a registered route.

AcceptedAtRoute<TValue>

An IResult that on execution will write an object to the response with status code Accepted (202) and Location header. Targets a registered route.

BadRequest

An IResult that on execution will write an object to the response with Bad Request (400) status code.

BadRequest<TValue>

An IResult that on execution will write an object to the response with Bad Request (400) status code.

ChallengeHttpResult

An IResult that on execution invokes HttpContext.ChallengeAsync.

Conflict

An IResult that on execution will write an object to the response with Conflict (409) status code.

Conflict<TValue>

An IResult that on execution will write an object to the response with Conflict (409) status code.

ContentHttpResult

An ContentHttpResult that when executed will produce a response with content.

Created

An IResult that on execution will write an object to the response with status code Created (201) and Location header.

Created<TValue>

An IResult that on execution will write an object to the response with status code Created (201) and Location header.

CreatedAtRoute

An IResult that on execution will write an object to the response with status code Created (201) and Location header. Targets a registered route.

CreatedAtRoute<TValue>

An IResult that on execution will write an object to the response with status code Created (201) and Location header. Targets a registered route.

EmptyHttpResult

Represents an IResult that when executed will do nothing.

FileContentHttpResult

Represents an IResult that when executed will write a file from the content to the response.

FileStreamHttpResult

Represents an IResult that when executed will write a file from a stream to the response.

ForbidHttpResult

An IResult that on execution invokes HttpContext.ForbidAsync.

InternalServerError

An IResult that on execution will write an object to the response with Internal Server Error (500) status code.

InternalServerError<TValue>

An IResult that on execution will write an object to the response with Internal Server Error (500) status code.

JsonHttpResult<TValue>

An action result which formats the given object as JSON.

NoContent

Represents an IResult that when executed will produce an HTTP response with the No Content (204) status code.

NotFound

An IResult that on execution will write an object to the response with Not Found (404) status code.

NotFound<TValue>

An IResult that on execution will write an object to the response with Not Found (404) status code.

Ok

An IResult that on execution will write an object to the response with Ok (200) status code.

Ok<TValue>

An IResult that on execution will write an object to the response with Ok (200) status code.

PhysicalFileHttpResult

A PhysicalFileHttpResult on execution will write a file from disk to the response using mechanisms provided by the host.

ProblemHttpResult

An IResult that on execution will write Problem Details HTTP API responses based on https://tools.ietf.org/html/rfc7807

PushStreamHttpResult

Represents an IResult that when executed will write a file from the writer callback to the response.

RazorComponentResult

An IResult that renders a Razor Component.

RazorComponentResult<TComponent>

An IResult that renders a Razor Component.

RedirectHttpResult

An IResult that returns a Found (302), Moved Permanently (301), Temporary Redirect (307), or Permanent Redirect (308) response with a Location header to the supplied URL.

RedirectToRouteHttpResult

An IResult that returns a Found (302), Moved Permanently (301), Temporary Redirect (307), or Permanent Redirect (308) response with a Location header. Targets a registered route.

Results<TResult1,TResult2>

An IResult that could be one of two different IResult types. On execution will execute the underlying IResult instance that was actually returned by the HTTP endpoint.

Results<TResult1,TResult2,TResult3>

An IResult that could be one of three different IResult types. On execution will execute the underlying IResult instance that was actually returned by the HTTP endpoint.

Results<TResult1,TResult2,TResult3,TResult4>

An IResult that could be one of four different IResult types. On execution will execute the underlying IResult instance that was actually returned by the HTTP endpoint.

Results<TResult1,TResult2,TResult3,TResult4,TResult5>

An IResult that could be one of five different IResult types. On execution will execute the underlying IResult instance that was actually returned by the HTTP endpoint.

Results<TResult1,TResult2,TResult3,TResult4,TResult5,TResult6>

An IResult that could be one of six different IResult types. On execution will execute the underlying IResult instance that was actually returned by the HTTP endpoint.

SignInHttpResult

An IResult that on execution invokes HttpContext.SignInAsync.

SignOutHttpResult

An IResult that on execution invokes HttpContext.SignOutAsync.

StatusCodeHttpResult

Represents an IResult that when executed will produce an HTTP response with the given response status code.

UnauthorizedHttpResult

Represents an IResult that when executed will produce an HTTP response with the No Unauthorized (401) status code.

UnprocessableEntity

An IResult that on execution will write an object to the response with Unprocessable Entity (422) status code.

UnprocessableEntity<TValue>

An IResult that on execution will write an object to the response with Unprocessable Entity (422) status code.

Utf8ContentHttpResult

An Utf8ContentHttpResult that when executed will produce a response with content.

ValidationProblem

An IResult that on execution will write Problem Details HTTP API responses based on https://tools.ietf.org/html/rfc7807

VirtualFileHttpResult

A IResult that on execution writes the file specified using a virtual path to the response using mechanisms provided by the host.