Table of Contents

Class CPResponseBaseClass

Namespace
Contensive.BaseClasses
Assembly
CPBase.dll

Control over the optional http response

public abstract class CPResponseBaseClass
Inheritance
CPResponseBaseClass
Inherited Members

Properties

ContentType

set of geth the content type of the response.

public abstract string ContentType { get; set; }

Property Value

string

Cookies

A key=value pair string of all cookies being sent in the response

public abstract string Cookies { get; }

Property Value

string

Header

response headers

public abstract string Header { get; }

Property Value

string

isOpen

Is the response object available to write. False during background processes and after the html response has ended. For instance, when a remote method is returned the response is closed meaning no other data should be added to the output.

public abstract bool isOpen { get; }

Property Value

bool

Methods

AddHeader(string, string)

Add a key=value pair to the http header

public abstract void AddHeader(string key, string value)

Parameters

key string
value string

Clear()

Clear all response output

public abstract void Clear()

Close()

Optional finalize the response.

public abstract void Close()

Flush()

flear the response

public abstract void Flush()

Redirect(string)

Set the response redirect (302)

public abstract void Redirect(string link)

Parameters

link string

RedirectPermanent(string)

Set the response redirect permanent (301)

public abstract void RedirectPermanent(string link)

Parameters

link string

SetBuffer(bool)

[Obsolete("Deprecated. Output buffer is deprecated", false)]
public abstract void SetBuffer(bool bufferOn)

Parameters

bufferOn bool

SetCookie(string, string)

set a simple response cookie value

public abstract void SetCookie(string key, string value)

Parameters

key string
value string

SetCookie(string, string, DateTime)

set a response cookie

public abstract void SetCookie(string key, string value, DateTime dateExpires)

Parameters

key string
value string
dateExpires DateTime

SetCookie(string, string, DateTime, string)

set a response cookie

public abstract void SetCookie(string key, string value, DateTime dateExpires, string domain)

Parameters

key string
value string
dateExpires DateTime
domain string

SetCookie(string, string, DateTime, string, string)

set a response cookie

public abstract void SetCookie(string key, string value, DateTime dateExpires, string domain, string path)

Parameters

key string
value string
dateExpires DateTime
domain string
path string

SetCookie(string, string, DateTime, string, string, bool)

set a response cookie

public abstract void SetCookie(string key, string value, DateTime dateExpires, string domain, string path, bool secure)

Parameters

key string
value string
dateExpires DateTime
domain string
path string
secure bool

SetStatus(string)

Set the http response. ex 200 Success

public abstract void SetStatus(string status)

Parameters

status string

SetTimeout(string)

Deprecated. Set http response timeout directly in response client.

[Obsolete("Deprecated. Set http response timeout directly in response client.", true)]
public abstract void SetTimeout(string timeoutSeconds)

Parameters

timeoutSeconds string

SetType(string)

set response content type

public abstract void SetType(string contentType)

Parameters

contentType string

Write(string)

deprecated. content generation no longer includes a buffer

[Obsolete("The write buffer is deprecated")]
public abstract void Write(string content)

Parameters

content string