Home > @uniformdev/context-edge-akamai > createOriginFetcher

createOriginFetcher() function

Signature:

createOriginFetcher: ({ timeout, buildRequestUrl, buildOriginRequestHeaders, }: {
    timeout?: number;
    buildRequestUrl?: (request: EW.ResponseProviderRequest) => string;
    buildOriginRequestHeaders?: (request: EW.ResponseProviderRequest, defaultHeaders: Record<string, string>) => Record<string, string | string[]>;
}) => OriginFetcher

Parameters

ParameterTypeDescription
{ timeout, buildRequestUrl, buildOriginRequestHeaders, }{ timeout?: number; buildRequestUrl?: (request: EW.ResponseProviderRequest) => string; buildOriginRequestHeaders?: (request: EW.ResponseProviderRequest, defaultHeaders: Record<string, string>) => Record<string, string | string[]>; }

Returns:

OriginFetcher