Class ChatterBase
Base class used for ClientChatter and ServerChatter. Combines some fields/properties/methods of the two to reduce code duplication.
Inheritance
Namespace: Fiddler
Assembly: FiddlerCore.dll
Syntax
public class ChatterBase : Object
Properties
data
The data stream for the request/response.
Declaration
protected virtual MemoryStream data { get; }
Property Value
System.
|
isRequest
True if this is a request (client) connection, False if it is a response (server) connection
Declaration
protected virtual bool isRequest { get; }
Property Value
System.
|
Methods
AreHeadersAvailable(Session)
Check the data stream and find if headers are fully transmitted to us. For HTTP/1.1 Scans stream for the \r\n\r\n (or variants) sequence, which indicates that the header block is complete. For HTTP/2 the check is done elsewhere and this code is not executed. SIDE EFFECTS: iBodySeekProgress is updated and maintained across calls to this function iEntityBodyOffset is updated if the end of headers is found
Declaration
public bool AreHeadersAvailable(Session oS)
Parameters
Session
oS
|
Returns
System. True if the full set of headers are available |
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. |
TakeHTTP2EntityAsync(Session)
Get the request/response body from a stream
Declaration
public Task<byte[]> TakeHTTP2EntityAsync(Session oS)
Parameters
Session
oS
|
Returns
System. A byte array containing the request/response data |