Skip to main content
Feedback

Inject Static Header Connector

Description

  • Connector performs pre-processing of the request and post-processing of the response to add the static headers and its value to the target request going to the backend and target response being sent to front end user/consumer based on the configuration provided in the pre/post inputs.

  • Supports both pre-processing and post-processing.

Usage

X-PARTNER-ID:mashery

Injects a header X-PARTNER-ID:mashery in the backend API request for the endpoint.

Inject static headerconnector

Configuring Endpoint Processing

To configure Inject Static Header call processing for an endpoint:

  1. From the API Management Control Center dashboard, navigate to Design > API Definitions, then click the desired API definition from the list.

  2. Click an existing endpoint on the Endpoints page.

  3. Click Call Transformations in the left-hand menu.

  4. On the Call Transformations page, specify the following information in these fields:

    1. Processing Adapter: com.mashery.proxy.core.add-headers-processor

    2. Perform Pre-Processing: Enabled

    3. Data to make available for pre-processing:

      note

      Example: testKey:testValue

    4. Perform Post-processing: Enabled

    5. **Data to make available for post-processing: **

      note

      Example: testKey:testValue

error

  1. Click Save when done.
On this Page