@nospamproxy/core
    Preparing search index...

    HTTP client with NoSpamProxy-specific authentication and retry-pipeline.

    Hierarchy (View Summary)

    Implements

    • IDisposable
    Index

    Constructors

    • Returns WebApi

    Properties

    configManager: IConfigurationManager = ...
    httpClient: IHttpClient
    responseCache: Map<
        string,
        { originalPromise: Promise<any>; responseValue?: any },
    > = ...

    In memory cache (short-lived storage)

    Methods

    • Parameters

      Returns Promise<any>

    • Configures the HttpClient with base url, default header, interceptors etc. Extension point for the child classes to alter the configuration for HttpClient.

      Returns void

    • Returns void

    • Parameters

      Returns Promise<{ blob: Blob; headers: Headers }>

    • Type Parameters

      • T = any

      Parameters

      Returns Promise<T>

    • Returns string

    post