Class DirectoryArchiveReader
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
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
GetDecodedResponseBody(int)
Get the decoded (unchunked and uncompressed) response body of an exchange
public Stream? GetDecodedResponseBody(int exchangeId)
Parameters
exchangeId
int
Returns
GetRawCaptureFile(int)
public string? GetRawCaptureFile(int connectionId)
Parameters
connectionId
int
Returns
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
GetRawCaptureStream(int)
Get a rawcapture stream of a connection
public Stream? GetRawCaptureStream(int connectionId)
Parameters
connectionId
int
Returns
GetRequestBody(int)
Get the request body of an exchange
public Stream? GetRequestBody(int exchangeId)
Parameters
exchangeId
int
Returns
GetRequestBodyLength(int)
Get the response body of an exchange
public long GetRequestBodyLength(int exchangeId)
Parameters
exchangeId
int
Returns
GetRequestWebsocketContent(int, int)
Get request websocket content
public Stream? GetRequestWebsocketContent(int exchangeId, int messageId)
Parameters
Returns
GetResponseBody(int)
Get the response body of an exchange
public Stream? GetResponseBody(int exchangeId)
Parameters
exchangeId
int
Returns
GetResponseBodyLength(int)
Get the response body of an exchange
public long GetResponseBodyLength(int exchangeId)
Parameters
exchangeId
int
Returns
GetResponseWebsocketContent(int, int)
Get response websocket content
public Stream? GetResponseWebsocketContent(int exchangeId, int messageId)
Parameters
Returns
HasCapture(int)
Check if a connection has a raw capture file
public bool HasCapture(int connectionId)
Parameters
connectionId
int
Returns
HasRequestBody(int)
Check if an exchange has a request body
public bool HasRequestBody(int exchangeId)
Parameters
exchangeId
int
Returns
HasResponseBody(int)
Check if an exchange has a response body
public bool HasResponseBody(int exchangeId)
Parameters
exchangeId
int
Returns
ReadAllConnections()
Read all connections from the archive
public IEnumerable<ConnectionInfo> ReadAllConnections()
Returns
ReadAllExchanges()
Read all exchanges from the archive
public IEnumerable<ExchangeInfo> ReadAllExchanges()
Returns
ReadConnection(int)
Read a connection from the archive
public ConnectionInfo? ReadConnection(int connectionId)
Parameters
connectionId
int
Returns
ReadExchange(int)
Read an exchange from the archive
public ExchangeInfo? ReadExchange(int exchangeId)
Parameters
exchangeId
int
Returns
ReadMetaInformation()
Read meta information from the archive
public ArchiveMetaInformation ReadMetaInformation()
Returns
ReaderAllDownstreamErrors()
Read all downstream errors from the archive
public IReadOnlyCollection<DownstreamErrorInfo> ReaderAllDownstreamErrors()