Search Results

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.

Design and Implementation

Configuring Endpoint Processing

To configure Inject Static Header call processing for an endpoint:
  1. From the TIBCO Cloud Mashery 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. In the Call Transformations page, specify the following information in these fields:
    • Processing Adapter: com.mashery.proxy.core.add-headers-processor
    • Perform Pre-Processing: Enabled
    • Data to make available for pre-processing:
      Note: Example: testKey:testValue
    • Perform Post-processing: Enabled
    • Data to make available for post-processing:
      Note: Example: testKey:testValue


  5. Click Save when done.

Chaining

Inject Static Headers Connector can be chained with other TIBCO Mashery connectors, as well as TIBCO Mashery adapters developed as processors.

For more information on chaining two processors, see Chaining Processors.

Mashery Local Porting

Inject Static Headers connector can be ported to Mashery Local customer specific bundle.

Note: Porting of this Connector can be performed by TIBCO Mashery® for a specific Mashery Local customer. Consult TIBCO Mashery® Customer Success team for more information.