Skip to main content

IHttpResponse

A thin wrapper around ASP.NET or HttpListener's HttpResponse

Assembly: ServiceStack.Interfaces.dll​
View Source​
Declaration
public interface IHttpResponse : IResponse

Properties​

Cookies​

View Source​
Declaration
ICookies Cookies { get; }

Methods​

SetCookie(Cookie)​

Adds a new Set-Cookie instruction to Response

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

ClearCookies()​

Removes all pending Set-Cookie instructions

View Source​
Declaration
void ClearCookies()