Skip to main content

IHttpResult

Custom HTTP Response

Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IHttpResult : IHasOptions

Properties

Status

The HTTP Response Status

View Source
Declaration
int Status { get; set; }

StatusCode

The HTTP Response Status Code

View Source
Declaration
HttpStatusCode StatusCode { get; set; }

StatusDescription

The HTTP Status Description

View Source
Declaration
string StatusDescription { get; set; }

ContentType

The HTTP Response ContentType

View Source
Declaration
string ContentType { get; set; }

Headers

Additional HTTP Headers

View Source
Declaration
Dictionary<string, string> Headers { get; }

Cookies

Additional HTTP Cookies

View Source
Declaration
List<Cookie> Cookies { get; }

Response

Response DTO

View Source
Declaration
object Response { get; set; }

ResponseFilter

if not provided, get's injected by ServiceStack

View Source
Declaration
IContentTypeWriter ResponseFilter { get; set; }

RequestContext

Holds the request call context

View Source
Declaration
IRequest RequestContext { get; set; }

PaddingLength

The padding length written with the body, to be added to ContentLength of body

View Source
Declaration
int PaddingLength { get; set; }

ResultScope

Serialize the Response within the specified scope

View Source
Declaration
Func<IDisposable> ResultScope { get; set; }