@fluentity/core
    Preparing search index...

    Interface RestAdapterOptions

    Configuration options for the HttpClient.

    interface RestAdapterOptions {
        baseUrl?: string;
        cacheOptions?: CacheOptions;
        errorInterceptor?: (error: Error) => void;
        options?: RequestOptions;
        requestHandler?: (request: HttpRequest) => Promise<HttpResponse<any>>;
        requestInterceptor?: (request: HttpRequest) => HttpRequest;
        responseInterceptor?: (response: HttpResponse) => HttpResponse;
    }
    Index

    Properties

    baseUrl?: string

    Base URL to prepend to all requests

    cacheOptions?: CacheOptions

    Cache configuration options

    errorInterceptor?: (error: Error) => void

    Handler for request errors

    options?: RequestOptions

    Default request options to apply to all requests

    requestHandler?: (request: HttpRequest) => Promise<HttpResponse<any>>

    Custom request handler function

    requestInterceptor?: (request: HttpRequest) => HttpRequest

    Interceptor to modify requests before they are sent

    responseInterceptor?: (response: HttpResponse) => HttpResponse

    Interceptor to modify responses after they are received