github.com/avenga/couper@v1.12.2/server/testdata/integration/endpoint_eval/01_couper.hcl (about) 1 server "api" { 2 error_file = "./../server_error.html" 3 4 api { 5 error_file = "./../api_error.json" 6 7 endpoint "/{path}/{hostname}/{origin}" { 8 proxy { 9 backend "anything" { 10 path = "/anything" 11 hostname = request.path_params.hostname 12 set_response_headers = { 13 x-origin = request.path_params.origin 14 } 15 } 16 } 17 } 18 } 19 } 20 21 definitions { 22 # backend origin within a definition block gets replaced with the integration test "anything" server. 23 backend "anything" { 24 path = "/not-found-anything" 25 origin = "http://${request.path_params.origin}" 26 } 27 }