It would be very useful to be able to select header values within chains.
E.g. (taking the example from the docs)
chains:
username:
source: !file
path: ./username.txt
password:
source: !file
path: ./password.txt
auth_token:
source: !request
recipe: login
# selector: $.token instead of JSONPath, there should be some method of obtaining header values.
selector: headers.token
requests:
# This returns a response like {"token": "abc123"}
login: !request
method: POST
url: "https://myfishes.fish/login"
body: |
{
"username": "{{chains.username}}",
"password": "{{chains.password}}"
}
get_user: !request
method: GET
url: "https://myfishes.fish/current-user"
authentication: !bearer "{{chains.auth_token}}"
Either enable selector to be able to access header values or something akin to header_selector which allows for this to happen.
It would be very useful to be able to select header values within
chains.E.g. (taking the example from the docs)
Either enable
selectorto be able to access header values or something akin toheader_selectorwhich allows for this to happen.