Table of Contents

Class DirectoryArchiveReader

Namespace
Fluxzy.Readers
Assembly
Fluxzy.Core.dll

An archive reader that read from a directory

public class DirectoryArchiveReader : IArchiveReader, IDisposable
Inheritance
DirectoryArchiveReader
Implements
Inherited Members

Constructors

DirectoryArchiveReader(string)

public DirectoryArchiveReader(string baseDirectory)

Parameters

baseDirectory string

Properties

BaseDirectory

public string BaseDirectory { get; }

Property Value

string

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

GetDecodedRequestBody(int)

Get the decoded (unchunked and uncompressed) request body of an exchange

public Stream? GetDecodedRequestBody(int exchangeId)

Parameters

exchangeId int

Returns

Stream

GetDecodedResponseBody(int)

Get the decoded (unchunked and uncompressed) response body of an exchange

public Stream? GetDecodedResponseBody(int exchangeId)

Parameters

exchangeId int

Returns

Stream

GetRawCaptureFile(int)

public string? GetRawCaptureFile(int connectionId)

Parameters

connectionId int

Returns

string

GetRawCaptureKeyStream(int)

Get a rawcapture key stream of a connection. The content of the stream is an UTF8 string in NSS Key log format

public Stream? GetRawCaptureKeyStream(int connectionId)

Parameters

connectionId int

Returns

Stream

GetRawCaptureStream(int)

Get a rawcapture stream of a connection

public Stream? GetRawCaptureStream(int connectionId)

Parameters

connectionId int

Returns

Stream

GetRequestBody(int)

Get the request body of an exchange

public Stream? GetRequestBody(int exchangeId)

Parameters

exchangeId int

Returns

Stream

GetRequestBodyLength(int)

Get the response body of an exchange

public long GetRequestBodyLength(int exchangeId)

Parameters

exchangeId int

Returns

long

GetRequestWebsocketContent(int, int)

Get request websocket content

public Stream? GetRequestWebsocketContent(int exchangeId, int messageId)

Parameters

exchangeId int
messageId int

Returns

Stream

GetResponseBody(int)

Get the response body of an exchange

public Stream? GetResponseBody(int exchangeId)

Parameters

exchangeId int

Returns

Stream

GetResponseBodyLength(int)

Get the response body of an exchange

public long GetResponseBodyLength(int exchangeId)

Parameters

exchangeId int

Returns

long

GetResponseWebsocketContent(int, int)

Get response websocket content

public Stream? GetResponseWebsocketContent(int exchangeId, int messageId)

Parameters

exchangeId int
messageId int

Returns

Stream

HasCapture(int)

Check if a connection has a raw capture file

public bool HasCapture(int connectionId)

Parameters

connectionId int

Returns

bool

HasRequestBody(int)

Check if an exchange has a request body

public bool HasRequestBody(int exchangeId)

Parameters

exchangeId int

Returns

bool

HasResponseBody(int)

Check if an exchange has a response body

public bool HasResponseBody(int exchangeId)

Parameters

exchangeId int

Returns

bool

ReadAllConnections()

Read all connections from the archive

public IEnumerable<ConnectionInfo> ReadAllConnections()

Returns

IEnumerable<ConnectionInfo>

ReadAllExchanges()

Read all exchanges from the archive

public IEnumerable<ExchangeInfo> ReadAllExchanges()

Returns

IEnumerable<ExchangeInfo>

ReadConnection(int)

Read a connection from the archive

public ConnectionInfo? ReadConnection(int connectionId)

Parameters

connectionId int

Returns

ConnectionInfo

ReadExchange(int)

Read an exchange from the archive

public ExchangeInfo? ReadExchange(int exchangeId)

Parameters

exchangeId int

Returns

ExchangeInfo

ReadMetaInformation()

Read meta information from the archive

public ArchiveMetaInformation ReadMetaInformation()

Returns

ArchiveMetaInformation

ReaderAllDownstreamErrors()

Read all downstream errors from the archive

public IReadOnlyCollection<DownstreamErrorInfo> ReaderAllDownstreamErrors()

Returns

IReadOnlyCollection<DownstreamErrorInfo>