Class Network

Network class provides methods to manage network requests and responses using BiDi (Bidirectional) communication.

Constructors

Properties

_events: NetworkEvents
_ws: BiDi

Accessors

Methods

  • Adds a network intercept.

    Parameters

    • context: NetworkAddInterceptParameters

      The parameters for adding the network intercept.

    Returns Promise<NetworkAddInterceptResult>

    A promise that resolves with the result of adding the network intercept.

  • Continues a paused network request.

    Parameters

    • context: NetworkContinueRequestParameters

      The parameters for continuing the network request.

    Returns Promise<void>

    A promise that resolves when the request is continued.

  • Continues a paused network response.

    Parameters

    • context: NetworkContinueResponseParameters

      The parameters for continuing the network response.

    Returns Promise<void>

    A promise that resolves when the response is continued.

  • Continues a paused network request with authentication.

    Parameters

    • context: NetworkContinueWithAuthParameters

      The parameters for continuing the network request with authentication.

    Returns Promise<void>

    A promise that resolves when the request is continued with authentication.

  • Fails a network request.

    Parameters

    • context: NetworkFailRequestParameters

      The parameters for failing the network request.

    Returns Promise<void>

    A promise that resolves when the request is failed.

  • Provides a response to a network request.

    Parameters

    • context: NetworkContinueResponseParameters

      The parameters for providing the network response.

    Returns Promise<void>

    A promise that resolves when the response is provided.

  • Removes a network intercept.

    Parameters

    • context: NetworkRemoveInterceptParameters

      The parameters for removing the network intercept.

    Returns Promise<void>

    A promise that resolves when the network intercept is removed.

  • Configures the network cache behavior for certain requests.

    Parameters

    • context: NetworkSetCacheBehaviorParameters

      The parameters for setting the cache behavior.

    Returns Promise<void>

    A promise that resolves when the cache behavior is set.

""