Search Results for

    Show / Hide Table of Contents

    Class BeforeBodyWriteEventArgs

    Inheritance
    object
    EventArgs
    ProxyEventArgsBase
    BeforeBodyWriteEventArgs
    Inherited Members
    ProxyEventArgsBase.ClientUserData
    EventArgs.Empty
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Titanium.Web.Proxy.EventArguments
    Assembly: Titanium.Web.Proxy.dll
    Syntax
    public class BeforeBodyWriteEventArgs : ProxyEventArgsBase

    Properties

    | Edit this page View Source

    BodyBytes

    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[]
    | Edit this page View Source

    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
    | Edit this page View Source

    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
    | Edit this page View Source

    Session

    Declaration
    public SessionEventArgs Session { get; }
    Property Value
    Type Description
    SessionEventArgs

    The session arguments.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX