Show / Hide Table of Contents

# Class RequestResponseBase

##### Inheritance

Object
RequestResponseBase
Request
Response

##### Inherited Members

Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()

###### Namespace: Titanium.Web.Proxy.Http

###### Assembly: Titanium.Web.Proxy.dll

##### Syntax

    public abstract class RequestResponseBase

### Properties

#### Body

Body as byte array

##### Declaration

    [Browsable(false)]
    public byte[] Body { get; }

##### Property Value

Type | Description
--- | ---
System.Byte[] |

#### BodyInternal

Cached body content as byte array.

##### Declaration

    protected byte[] BodyInternal { get; }

##### Property Value

Type | Description
--- | ---
System.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 |

#### OriginalIsBodyRead

Store whether the original request/response body was read by user. We need this detail to syphon out attached tcp connection for reuse.

##### Declaration

    public bool OriginalIsBodyRead { get; }

##### Property Value

Type | Description
--- | ---
Boolean |

### Methods

#### ToString()

##### Declaration

    public override string ToString()

##### Returns

Type | Description
--- | ---
String |

##### Overrides

Object.ToString()