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

    Module basic

    Basic authentication middleware.

    Attaches static Basic credentials to every request routed through the wrapped Fetch implementation.

    Usage

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

    const client = createFetch(basic("user", "secret"));
    basic

    Creates a middleware authenticating requests with the Basic scheme.