Skip to content

http_client URL + headers dynamic values with interpolation #1506

Answered by elukey
elukey asked this question in Q&A
Discussion options

You must be logged in to vote

Found a way to do it:

  http_client:
    url: 'https://some-domain:30443/v1/models/${! json("revision_create_event.database") }-goodfaith:predict'
    verb: POST
    headers:
      "Host": '${! json("revision_create_event.database") }--rest-of-the-hostname'

Single quotes are important IIUC.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by elukey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant