Class BeforeBodyWriteEventArgs
Inherited Members
Namespace: Titanium.Web.Proxy.EventArguments
Assembly: Titanium.Web.Proxy.dll
Syntax
public class BeforeBodyWriteEventArgs : ProxyEventArgsBase
Properties
| Edit this page View SourceBodyBytes
The bytes about to be written. If IsChunked is true, this will be a chunk of the bytes to be written. Override this property with custom bytes if needed, and adjust IsLastChunk accordingly.
Declaration
public byte[] BodyBytes { get; set; }
Property Value
| Type | Description |
|---|---|
| byte[] |
IsChunked
Indicates whether the body is written as a chunked stream. If this is true, OnRequestBodyWrite/OnResponseBodyWrite will be called for each chunk until IsLastChunk becomes true.
Declaration
public bool IsChunked { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsLastChunk
Indicates whether this is the last chunk from the client or server stream, when the body is chunked. This is true when the source stream has reached its end. Set this to true from a handler to stop writing further chunks to the target stream (the terminating chunk will be written).
Declaration
public bool IsLastChunk { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Session
Declaration
public SessionEventArgs Session { get; }
Property Value
| Type | Description |
|---|---|
| SessionEventArgs | The session arguments. |