Class Transit

The Targeted Singleton Transit class is a built-in Proxy intercepting all connections opened by the Http class. This Proxy implements the Symbol.observable pattern, through which it emits an array of all currently open Http.Requests every time a new Http.Request is fired or a previously fired Http.Request completes.

Decorator

Target

Decorator

Singleton

See

Hierarchy (view full)

Constructors

Properties

[provide]: "sgrud.core.Proxy" = 'sgrud.core.Proxy'

Magic string by which this class is provided.

changes: Subject<Transit>

The changes Subject emits every time a request is added to or deleted from the internal requests mapping.

requests: Map<Request, Response<any>>

Internal Mapping of all running requests. Mutating this map should be accompanied by an emittance of the changes Subject.

Methods

Generated using TypeDoc