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