Interface IResponse
- Namespace
- Dynamicweb.Environment
- Assembly
- Dynamicweb.Core.dll
Interface IResponse is an abstraction of HttpResponse. Encapsulates HTTP-response information.
public interface IResponse
Properties
ContentType
Gets or sets the type of the content.
string ContentType { get; set; }
Property Value
- string
The type of the content.
Expires
Gets or sets the expires.
int Expires { get; set; }
Property Value
- int
The expires.
Methods
AddCookie(Cookie)
Adds the cookie.
void AddCookie(Cookie cookie)
Parameters
cookie
CookieThe cookie.
AddHeader(string, string)
Adds the header.
void AddHeader(string name, string value)
Parameters
IsValid()
Returns true if the response is valid.
bool IsValid()
Returns
- bool
true
if this instance is valid; otherwise,false
.
RemoveCookie(string)
Removes the cookie.
void RemoveCookie(string name)
Parameters
name
stringThe cookie name.
SetCookie(Cookie)
Sets the cookie.
void SetCookie(Cookie cookie)
Parameters
cookie
CookieThe cookie.