Class ClientChatter
The ClientChatter object, exposed as the oRequest object on the Session object, represents a single web request.
Inheritance
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
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.
|
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.
|
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 ']'
Declaration
public string host { get; }
Property Value
System.
|
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.
|
Item[String]
Simple indexer into the Request Headers object
Declaration
public string this[string sHeader] { get; set; }
Parameters
System.
|
Property Value
System.
|
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. Response code |
System. Response status text |
System. Body of the HTTP Response |
Returns
System.
|
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. Array containing a part or the whole body |
System. How many bytes to send |
System. True if this is the final part of the body to send |
Returns
System. 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. Offset in the received data to start leaking the body from |
System. Output array buffer that will hold the parsed data |
System. True if the last parsed frame has an 'EndOfStream' flag set |
Returns
System. 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. |