@stephen-shopopop/node-metrics
    Preparing search index...

    Type Alias Context

    Represents the context of an HTTP request.

    type Context = {
        body: () => Promise<unknown>;
        headers: Record<string, string>;
        method: string;
        path: string;
        query: Record<string, string>;
    }
    Index

    Properties

    body: () => Promise<unknown>

    A function that returns a promise resolving to the parsed request body.

    headers: Record<string, string>

    A record of HTTP headers associated with the request.

    method: string

    The HTTP method (e.g., 'GET', 'POST').

    path: string

    The request path (URL endpoint).

    query: Record<string, string>

    An object containing query parameters from the URL.