ezyVet Javascript Helper Library Documentation
    Preparing search index...

    Interface FetchDataProps

    interface FetchDataProps {
        abortSignal?: AbortSignal;
        body?: BodyInit;
        credentials?: RequestCredentials;
        headers?: Headers;
        method: FetchMethod;
        onRefreshTokenFailure?: (error: Error) => void;
        onRefreshTokenSuccess?: (responseBody: any) => void;
        refreshTokenURLParameters?: ResourceRequestOptions;
        url: RequestInfo;
    }

    Hierarchy (View Summary)

    Index

    Properties

    abortSignal?: AbortSignal

    Signal to abort requests that are in flight

    body?: BodyInit

    Optional body to attach to the request

    credentials?: RequestCredentials

    Optionally set the request's credentials

    headers?: Headers

    Optional headers to attach to the request

    method: FetchMethod

    The method to fetch with

    onRefreshTokenFailure?: (error: Error) => void

    Function to run when re-authentication request fails

    onRefreshTokenSuccess?: (responseBody: any) => void

    Function to run when re-authentication request succeeds

    refreshTokenURLParameters?: ResourceRequestOptions

    Refresh token URL parameters for reauthorization

    url: RequestInfo

    The url to execute a fetch on