Skip to main content

ListenerResponse

Assembly: ServiceStack.dll
View Source
Declaration
public class ListenerResponse : IHttpResponse, IResponse

Properties

OriginalResponse

View Source
Declaration
public object OriginalResponse { get; }

Request

View Source
Declaration
public IRequest Request { get; }

StatusCode

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

StatusDescription

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

ContentType

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

Dto

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

BufferedStream

View Source
Declaration
public MemoryStream BufferedStream { get; set; }

OutputStream

View Source
Declaration
public Stream OutputStream { get; }

UseBufferedStream

View Source
Declaration
public bool UseBufferedStream { get; set; }

IsClosed

View Source
Declaration
public bool IsClosed { get; }

KeepAlive

View Source
Declaration
public bool KeepAlive { get; set; }

HasStarted

Can ignore as doesn't throw if HTTP Headers already written

View Source
Declaration
public bool HasStarted { get; }

Items

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

Cookies

View Source
Declaration
public ICookies Cookies { get; set; }

Methods

AddHeader(String, String)

View Source
Declaration
public void AddHeader(string name, string value)
Parameters
TypeName
System.Stringname
System.Stringvalue

AppendHeader(String, String)

View Source
Declaration
public void AppendHeader(string name, string value)
Parameters
TypeName
System.Stringname
System.Stringvalue

RemoveHeader(String)

View Source
Declaration
public void RemoveHeader(string name)
Parameters
TypeName
System.Stringname

GetHeader(String)

View Source
Declaration
public string GetHeader(string name)
Returns

System.String

Parameters
TypeName
System.Stringname

Redirect(String)

View Source
Declaration
public void Redirect(string url)
Parameters
TypeName
System.Stringurl

Close()

View Source
Declaration
public void Close()

CloseAsync(CancellationToken)

View Source
Declaration
public Task CloseAsync(CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Threading.CancellationTokentoken

End()

View Source
Declaration
public void End()

Flush()

View Source
Declaration
public void Flush()

FlushAsync(CancellationToken)

View Source
Declaration
public async Task FlushAsync(CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Threading.CancellationTokentoken

SetContentLength(Int64)

View Source
Declaration
public void SetContentLength(long contentLength)
Parameters
TypeName
System.Int64contentLength

SetCookie(Cookie)

View Source
Declaration
public void SetCookie(Cookie cookie)
Parameters
TypeName
System.Net.Cookiecookie

ClearCookies()

View Source
Declaration
public void ClearCookies()

Implements