-
Notifications
You must be signed in to change notification settings - Fork 43
Interceptors
Thiago da Rosa de Bustamante edited this page Mar 27, 2018
·
1 revision
Configure request and response to the request pipeline.
It supports the following properties:
Property | Type | Description | Required |
---|---|---|---|
request | { [index: string]: Interceptors } | A list of request interceptor names | true |
response | { [index: string]: Interceptors } | A list of response interceptor names | true |
Example:
{
"interceptor": {
"request": {
"my-interceptor": {
"name":"myRequestInterceptor",
"options": {
"parameter1": "value1"
}
}
},
"response": {
"my-other-interceptor": {
"name":"myResponseInterceptor"
}
}
}
}
or
interceptor:
request:
my-interceptor:
name: myRequestInterceptor
options:
parameter1: value1
response:
my-other- interceptor:
name: myResponseInterceptor