Skip to main content

CompressedResult

Assembly: ServiceStack.dll
View Source
Declaration
public class CompressedResult : IStreamWriterAsync, IHttpResult, IHasOptions

Properties

Contents

View Source
Declaration
public byte[] Contents { get; }

ContentType

View Source
Declaration
public string ContentType { get; set; }

Headers

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

Cookies

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

Status

View Source
Declaration
public int Status { get; set; }

StatusCode

View Source
Declaration
public HttpStatusCode StatusCode { get; set; }

StatusDescription

View Source
Declaration
public string StatusDescription { get; set; }

Response

View Source
Declaration
public object Response { get; set; }

ResponseFilter

View Source
Declaration
public IContentTypeWriter ResponseFilter { get; set; }

RequestContext

View Source
Declaration
public IRequest RequestContext { get; set; }

PaddingLength

View Source
Declaration
public int PaddingLength { get; set; }

ResultScope

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

Options

View Source
Declaration
public IDictionary<string, string> Options { get; }

LastModified

View Source
Declaration
public DateTime? LastModified { set; }

Fields

DefaultContentType

View Source
Declaration
public const string DefaultContentType = "application/xml"

Methods

WriteToAsync(Stream, CancellationToken)

View Source
Declaration
public async Task WriteToAsync(Stream responseStream, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.IO.StreamresponseStream
System.Threading.CancellationTokentoken

Implements