• Preparing search index...
  • The search index is not available
SAP Cloud SDK for JavaScript - v3.26.4
  • SAP Cloud SDK for JavaScript
  • @sap-cloud-sdk/http-client
  • executeHttpRequestWithOrigin

Function executeHttpRequestWithOrigin

  • executeHttpRequestWithOrigin<T extends HttpRequestConfigWithOrigin>(
        destination: HttpDestinationOrFetchOptions,
        requestConfig?: T,
        options?: HttpRequestOptions,
    ): Promise<HttpResponse>

    Builds a DestinationHttpRequestConfig for the given destination, merges it into the given HttpRequestConfigWithOrigin and executes it (using Axios). The HttpRequestConfigWithOrigin supports defining header options and query parameter options with origins. Equally named headers and query parameters are prioritized in the following order:

    1. custom
    2. Destination related headers/query parameters
    3. requestConfig.

    Type Parameters

    • T extends HttpRequestConfigWithOrigin

    Parameters

    • destination: HttpDestinationOrFetchOptions

      A destination or a destination name and a JWT.

    • OptionalrequestConfig: T

      Any object representing an HTTP request.

    • Optionaloptions: HttpRequestOptions

      An HttpRequestOptions of the HTTP request for configuring e.g., CSRF token delegation. By default, the SDK will fetch the CSRF token.

    Returns Promise<HttpResponse>

    A promise resolving to an HttpResponse.

    See

    https://sap.github.io/cloud-sdk/docs/js/features/connectivity/query-parameters

    Copyright Ⓒ 2025 SAP SE or an SAP affiliate company. All rights reserved.

    • Defined in packages/http-client/dist/http-client.d.ts:68

Settings

Member Visibility
SAP Cloud SDK for JavaScript - v3.26.4
  • Loading...