Table of Contents

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

Adds the cookie.

void AddCookie(Cookie cookie)

Parameters

cookie Cookie

The cookie.

AddHeader(string, string)

Adds the header.

void AddHeader(string name, string value)

Parameters

name string

The name.

value string

The value.

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 string

The cookie name.

Sets the cookie.

void SetCookie(Cookie cookie)

Parameters

cookie Cookie

The cookie.

To top