Skip to content

Latest commit

 

History

History
82 lines (46 loc) · 4.22 KB

File metadata and controls

82 lines (46 loc) · 4.22 KB
graph LR
    RequestStorage["RequestStorage"]
    InMemoryRequestStorage["InMemoryRequestStorage"]
    RequestSaver["RequestSaver"]
    RequestLoader["RequestLoader"]
    RequestCleaner["RequestCleaner"]
    HarEntryGenerator["HarEntryGenerator"]
    InMemoryRequestStorage -- "implements" --> RequestStorage
    InMemoryRequestStorage -- "manages data for" --> RequestSaver
    InMemoryRequestStorage -- "manages data for" --> RequestLoader
    InMemoryRequestStorage -- "manages data for" --> RequestCleaner
    RequestSaver -- "writes data to" --> InMemoryRequestStorage
    RequestLoader -- "reads data from" --> InMemoryRequestStorage
    RequestCleaner -- "removes data from" --> InMemoryRequestStorage
    RequestStorage -- "defines contract for" --> InMemoryRequestStorage
    HarEntryGenerator -- "processes data from" --> InMemoryRequestStorage
Loading

CodeBoardingDemoContact

Details

The Network Traffic Storage & Export subsystem is responsible for persisting intercepted network traffic and providing mechanisms for its retrieval and export, particularly in the HTTP Archive (HAR) format.

RequestStorage

This abstract component defines the contract for how network requests, responses, and related data are stored and retrieved. It serves as the primary interface for data persistence, ensuring that different storage implementations can be used interchangeably.

Related Classes/Methods:

InMemoryRequestStorage

This concrete component provides an in-memory implementation of the RequestStorage interface. It manages the actual data structures (e.g., lists, dictionaries) that hold intercepted requests, responses, and HAR entries during the application's runtime.

Related Classes/Methods:

RequestSaver

Responsible for the persistence of individual network events. This component handles saving intercepted requests, their corresponding responses, and WebSocket messages to the underlying storage mechanism (e.g., InMemoryRequestStorage).

Related Classes/Methods:

RequestLoader

Provides functionalities for querying and retrieving stored network traffic data. This includes methods for fetching specific requests, the last intercepted request, or iterating through all stored requests, acting as the read interface to the storage.

Related Classes/Methods:

RequestCleaner

Manages the lifecycle and cleanup of stored network traffic data. This component is responsible for clearing all stored requests and performing any necessary resource cleanup to ensure efficient memory usage.

Related Classes/Methods:

HarEntryGenerator

Transforms raw intercepted Request and Response objects into a standardized HTTP Archive (HAR) entry dictionary, adhering to the HAR specification. This is crucial for exporting network data in a widely recognized format.

Related Classes/Methods: