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:masheryInjects a header X-PARTNER-ID:mashery in the backend API request for the endpoint.
Configuring Endpoint Processing
To configure Inject Static Header call processing for an endpoint:
- From the
TIBCO Cloud Mashery Control Center dashboard, navigate to
Design > API Definitions, then click the desired API definition from the list.
- Click an existing endpoint on the
Endpoints page.
- Click
Call Transformations in the left-hand menu.
- 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:
- Perform Post-processing: Enabled
- Data to make available for post-processing:
- 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.