@metreeca/http - v0.1.1
    Preparing search index...

    Module timeout

    Bounded response wait middleware.

    Bounds the wait for a response from the wrapped Fetch implementation, reporting a 504 Gateway Timeout in place of a response that doesn't arrive in time.

    Usage

    import { createFetch } from "@metreeca/http";
    import { timeout } from "@metreeca/http/timeout";

    const client = createFetch(timeout(5000));
    timeout

    Creates a middleware bounding the wait for a response.