@grafctory/http - v0.9.0
    Preparing search index...

    Module monitor

    Exchange logging middleware.

    Logs every exchange a client performs, as it is submitted and as it is answered, and states whether the client is busy. What the client is doing thus becomes observable without the call sites taking care of it.

    Requests, responses and failures are relayed untouched, whatever is logged. A failure is never converted into a response or a rejection, so the outcome a caller sees is the one the layers below produced.

    Usage

    import { createFetch } from "@grafctory/http";
    import { monitor } from "@grafctory/http/monitor";
    import { resolve } from "@grafctory/http/resolve";

    const client = createFetch(
    monitor(console),
    resolve() // declared after monitor: failures are logged as the responses answering them
    );
    monitor

    Creates an exchange monitoring middleware.