EU Parliament Monitor — API Documentation - v0.9.24
    Preparing search index...

    Interface IMFHttpContext

    Adapter passed by IMFMCPClient to HTTP transport helpers. Bundles the fields required for authenticated IMF SDMX 3.0 requests without requiring helpers to reference the client class directly.

    interface IMFHttpContext {
        apiBaseUrl: string;
        timeoutMs: number;
        fetchImpl: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | URL | Request, init?: RequestInit): Promise<Response>;
        };
        fetchProxyGatewayUrl: string
        | undefined;
        fetchProxyApiKey: string | undefined;
        imfSubscriptionKeys: readonly string[];
    }
    Index

    Properties

    apiBaseUrl: string

    Fully-qualified IMF SDMX base URL (no trailing slash)

    timeoutMs: number

    Per-request timeout in milliseconds

    fetchImpl: {
        (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
        (input: string | URL | Request, init?: RequestInit): Promise<Response>;
    }

    Fetch implementation (allows injection in tests)

    Type Declaration

      • (input: URL | RequestInfo, init?: RequestInit): Promise<Response>
      • Parameters

        • input: URL | RequestInfo
        • Optionalinit: RequestInit

        Returns Promise<Response>

      • (input: string | URL | Request, init?: RequestInit): Promise<Response>
      • Parameters

        • input: string | URL | Request
        • Optionalinit: RequestInit

        Returns Promise<Response>

    fetchProxyGatewayUrl: string | undefined

    Optional fetch-proxy gateway URL (bypasses AWF Squid proxy)

    fetchProxyApiKey: string | undefined

    Optional API key for the fetch-proxy gateway

    imfSubscriptionKeys: readonly string[]

    Configured Azure-APIM subscription keys (primary / secondary)