Static
Readonly
[provide]Magic string by which this class is provided.
Private
Readonly
changesPrivate
Readonly
requestsWell-known Symbol.observable
method returning a Subscribable. The
returned Subscribable emits all active Http.Requests in an
array, whenever this list changes. Using the returned Subscribable,
e.g., a load indicator can easily be implemented.
A Subscribable emitting all active Http.Request.
Subscribe to the currently active Http.Request:
import { Transit, Linker } from '@sgrud/core';
import { from } from 'rxjs';
const transit = new Linker<typeof Transit>().get(Transit);
from(transit).subscribe(console.log);
Overridden handle method of the Proxy base class. Mutates the
request
to also emit progress events while it is running. These progress
events will be consumed by the Transit interceptor and re-supplied
via the Subscribable returned by the Symbol.observable
method.
The Http.Request to be handled.
The next Http.Handler to handle the request
.
An Observable of the handled Http.Response.
Generated using TypeDoc
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