Interface ODataNewOptionsCommon

interface ODataNewOptionsCommon {
    commonHeaders?: {
        [headerName: string]: string;
    };
    credential?: Credential;
    csrfTokenName?: string;
    fetchProxy?: FetchProxy;
    processCsrfToken?: boolean;
    variant?: ODataVariant;
    version?: ODataVersion;
}

Properties

commonHeaders?: {
    [headerName: string]: string;
}

common headers will be sent for each requests

Type declaration

  • [headerName: string]: string
credential?: Credential

credential configuration, basic/oauth (client credentials)

csrfTokenName?: string

the header key of csrf token

Default

'x-csrf-token'
fetchProxy?: FetchProxy

fetch proxy of all request

processCsrfToken?: boolean

auto process csrf token of c4c

variant?: ODataVariant

service variant, some behaviors will be changed by this option

version?: ODataVersion

odata version

Default

'v2'