ResourceResponse Class

ResourceResponse class

One hop’s answer: a body with a status and media type, or a redirect.

public sealed class ResourceResponse

Constructors

NameDescription
ResourceResponse(int, string, byte[])A body; the bytes are copied.

Properties

NameDescription
Body { get; }A copy of the body.
MediaType { get; }The media type; empty for a redirect.
RedirectLocation { get; }The redirect target, or null.
StatusCode { get; }The status.

Methods

NameDescription
static Redirect(int, string)A redirect to location, resolved against the request URL.

See Also