Custom HTTP Header
Use the Custom HTTP Header policy to route requests based on the custom HTTP headers specified for the outgoing message to the native service.
Example of a Custom HTTP Header policy:
kind: CustomHttpHeader
apiVersion: api.webmethods.io/beta
metadata:
name: customHttpHeader
version: 1.0
namespace: sample
spec:
property:
- key: ${request.path}
value: test-value
To invoke the Custom HTTP Header policy, you can specify:
Type | Description |
---|---|
kind |
|
apiVersion | Denotes the version of the API in use. |
metadata | Denotes the metadata or details of the asset type. It covers this metadata:
|
spec |
You can configure the following policy specifications:
|