Class RequestResponseBase
Abstract base class for similar objects shared by both request and response objects.
Inherited Members
Namespace: Titanium.Web.Proxy.Http
Assembly: Titanium.Web.Proxy.dll
Syntax
public abstract class RequestResponseBaseProperties
| Improve this Doc View SourceBody
Body as byte array
Declaration
[Browsable(false)]
public byte[] Body { get; }Property Value
| Type | Description | 
|---|---|
| Byte[] | 
BodyInternal
Cached body content as byte array.
Declaration
protected byte[] BodyInternal { get; }Property Value
| Type | Description | 
|---|---|
| Byte[] | 
BodyString
Body as string. Use the encoding specified to decode the byte[] data to string
Declaration
[Browsable(false)]
public string BodyString { get; }Property Value
| Type | Description | 
|---|---|
| String | 
ContentEncoding
Content encoding for this request/response.
Declaration
public string ContentEncoding { get; }Property Value
| Type | Description | 
|---|---|
| String | 
ContentLength
Length of the body.
Declaration
public long ContentLength { get; set; }Property Value
| Type | Description | 
|---|---|
| Int64 | 
ContentType
Content-type of the request/response.
Declaration
public string ContentType { get; set; }Property Value
| Type | Description | 
|---|---|
| String | 
Encoding
Encoding for this request/response.
Declaration
public Encoding Encoding { get; }Property Value
| Type | Description | 
|---|---|
| Encoding | 
HasBody
Has the request/response body?
Declaration
public abstract bool HasBody { get; }Property Value
| Type | Description | 
|---|---|
| Boolean | 
Headers
Collection of all headers.
Declaration
public HeaderCollection Headers { get; }Property Value
| Type | Description | 
|---|---|
| HeaderCollection | 
HeaderText
The header text.
Declaration
public abstract string HeaderText { get; }Property Value
| Type | Description | 
|---|---|
| String | 
HttpVersion
Http Version.
Declaration
public Version HttpVersion { get; set; }Property Value
| Type | Description | 
|---|---|
| Version | 
IsBodyRead
Was the body read by user?
Declaration
public bool IsBodyRead { get; }Property Value
| Type | Description | 
|---|---|
| Boolean | 
IsChunked
Is body send as chunked bytes.
Declaration
public bool IsChunked { get; set; }Property Value
| Type | Description | 
|---|---|
| Boolean | 
KeepBody
Keeps the body data after the session is finished.
Declaration
public bool KeepBody { get; set; }Property Value
| Type | Description | 
|---|---|
| Boolean | 
Methods
| Improve this Doc View SourceToString()
Declaration
public override string ToString()Returns
| Type | Description | 
|---|---|
| String |