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
Cookies
A key=value pair string of all cookies being sent in the response
public abstract string Cookies { get; }
Property Value
Header
response headers
public abstract string Header { get; }
Property Value
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
Methods
AddHeader(string, string)
Add a key=value pair to the http header
public abstract void AddHeader(string key, string value)
Parameters
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
linkstring
RedirectPermanent(string)
Set the response redirect permanent (301)
public abstract void RedirectPermanent(string link)
Parameters
linkstring
SetBuffer(bool)
[Obsolete("Deprecated. Output buffer is deprecated", false)]
public abstract void SetBuffer(bool bufferOn)
Parameters
bufferOnbool
SetCookie(string, string)
set a simple response cookie value
public abstract void SetCookie(string key, string value)
Parameters
SetCookie(string, string, DateTime)
set a response cookie
public abstract void SetCookie(string key, string value, DateTime dateExpires)
Parameters
SetCookie(string, string, DateTime, string)
set a response cookie
public abstract void SetCookie(string key, string value, DateTime dateExpires, string domain)
Parameters
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
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
SetStatus(string)
Set the http response. ex 200 Success
public abstract void SetStatus(string status)
Parameters
statusstring
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
timeoutSecondsstring
SetType(string)
set response content type
public abstract void SetType(string contentType)
Parameters
contentTypestring
Write(string)
deprecated. content generation no longer includes a buffer
[Obsolete("The write buffer is deprecated")]
public abstract void Write(string content)
Parameters
contentstring