ClassClientChatter
The ClientChatter object, exposed as the oRequest object on the Session object, represents a single web request.
Definition
Namespace:Fiddler
Assembly:FiddlerCore.dll
Syntax:
public class ClientChatter
Inheritance: objectClientChatter
Inherited Members
Fields
pipeClient
The ClientPipe object which is connected to the client, or null.
Properties
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
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
bClientSocketReused
Was this request received from a reused client connection? Looks at SessionFlags.ClientPipeReused flag on owning Session.
headers
HTTP Headers sent in the client request, or null.
Declaration
public HTTPRequestHeaders headers { get; set; }
Property Value
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 ']'
this[string]
Simple indexer into the Request Headers object
Methods
FailSessionAsync(int, 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
SendBodyAsync(byte[], int, bool)
Send the response body back to the client
Declaration
public Task<int> SendBodyAsync(byte[] arrBodyBytes, int length, bool final = true)
Parameters
arrBodyBytes
byte[]
Array containing a part or the whole body
length
How many bytes to send
final
True if this is the final part of the body to send
Returns
The size of the bytes being transferred
StreamHTTP2BodyPart(Session, long, out byte[], out bool)
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
oS
The parent session of this connection
offset
Offset in the received data to start leaking the body from
arrResult
byte[]
Output array buffer that will hold the parsed data
isFinal
True if the last parsed frame has an 'EndOfStream' flag set
Returns
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.