• Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Design
    Unite UX
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
    • jQuery
    • Angular
    • React
    • Vue
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class ClientChatter

The ClientChatter object, exposed as the oRequest object on the Session object, represents a single web request.

Inheritance
System.Object
ClientChatter
Namespace: Fiddler
Assembly: FiddlerCore.dll

Syntax

public class ClientChatter : Object

Fields

pipeClient

The ClientPipe object which is connected to the client, or null.

Declaration
public ClientPipe pipeClient
Field Value
ClientPipe

Properties

bClientSocketReused

Was this request received from a reused client connection? Looks at SessionFlags.ClientPipeReused flag on owning Session.

Declaration
public bool bClientSocketReused { get; }
Property Value
System.Boolean

BufferRequest

Controls whether the request body is streamed to the server as it is read from the client.

Declaration
[CodeDescription("Controls whether the request body is streamed to the server as it is read from the client.")]
public bool BufferRequest { get; set; }
Property Value
System.Boolean

headers

HTTP Headers sent in the client request, or null.

Declaration
public HTTPRequestHeaders headers { get; set; }
Property Value
HTTPRequestHeaders

host

Note: This returns the request's HOST header, which may include a trailing port #. If the Host is an IPv6 literal, it will be enclosed in brackets '[' and ']'

Declaration
public string host { get; }
Property Value
System.String

InboundPort

Returns the port on which Fiddler read the request (typically 8888)

Declaration
[CodeDescription("Returns the port on which Fiddler read the request (typically 8888). Only available while the request is alive.")]
public int InboundPort { get; }
Property Value
System.Int32

Item[String]

Simple indexer into the Request Headers object

Declaration
public string this[string sHeader] { get; set; }
Parameters
System.String sHeader

Property Value
System.String

Methods

FailSessionAsync(Int32, String, String)

Send a HTTP/XXX Error Message to the Client, calling FiddlerApplication.BeforeReturningError and DoReturningError in FiddlerScript. Note: This method does not poison the Server pipe, so if poisoning is desired, it's the caller's responsibility to do that. Note: Because this method uses Connection: close on the returned response, it has the effect of poisoning the client pipe

Declaration
public Task FailSessionAsync(int iError, string sErrorStatusText, string sErrorBody)
Parameters
System.Int32 iError

Response code

System.String sErrorStatusText

Response status text

System.String sErrorBody

Body of the HTTP Response

Returns
System.Threading.Tasks.Task

SendBodyAsync(Byte[], Int32, Boolean)

Send the response body back to the client

Declaration
public Task<int> SendBodyAsync(byte[] arrBodyBytes, int length, bool final = true)
Parameters
System.Byte[] arrBodyBytes

Array containing a part or the whole body

System.Int32 length

How many bytes to send

System.Boolean final

True if this is the final part of the body to send

Returns
System.Threading.Tasks.Task<System.Int32>

The size of the bytes being transferred

StreamHTTP2BodyPart(Session, Int64, out Byte[], out Boolean)

Stream whatever data frames are present in the buffer at the specified offset

Declaration
public long StreamHTTP2BodyPart(Session oS, long offset, out byte[] arrResult, out bool isFinal)
Parameters
Session oS

The parent session of this connection

System.Int64 offset

Offset in the received data to start leaking the body from

System.Byte[] arrResult

Output array buffer that will hold the parsed data

System.Boolean isFinal

True if the last parsed frame has an 'EndOfStream' flag set

Returns
System.Int64

The parser's final position (offset) in the data stream. This can be less than the data strem length if extra frames or incomplete frames are present.

Getting Started
  • Try Now
Community
  • Forums
  • Blogs
  • Feedback Portal

Copyright © 2019 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.