Manifest
#data/recorder-example.yaml
version: v1.3
type: OutboundRecorder
name: recorder-example
rules:
- request: # 1.
path: /api/** # 1.1
method: GET # 1.2
headers: # 1.3
content-type: text/plain # 1.3.1
host: example.com # 1.3.2
relative: GET # 1.4
recorder: # 2.
storage: # 2.1
type: memory # 2.1.1
expiration-policy: # 2.2
type: access # 2.2.1Description
request- like other components of the request block, the difference is in the new field headers, which allows you to intercept requests with a specific headerpath- endpoint pathmethod- endpoint methodheaders- list of expected headersrelative- relative to current folder path, for path construction
recorder- the unit responsible for setting up the recorderstorage- storage setuptype- onlymemoryandguavastorage is available at the moment
expiration-policy- expiration policy setuptype- available variant are:access,time,size
This feature allows you to save outgoing requests for later use.
Last updated