Files
gateway/tests/fixtures/specs/param_forwarding_2.json
2026-01-16 09:55:14 +01:00

21 lines
742 B
JSON

{
"in": {
"method": "GET",
"url": "http://localhost:8080/param_forwarding/all/foo/bar?a=1&b=2",
"header": {
"Authorization": "bearer 123456",
"X-Y-Z": "true",
"A-B-C": "ignore"
}
},
"out": {
"status_code": 200,
"body": "{\"foo\":42,\"headers\":{\"A-B-C\":[\"ignore\"],\"Accept-Encoding\":[\"gzip\"],\"Authorization\":[\"bearer 123456\"],\"User-Agent\":[\"Go-http-client/1.1\"],\"X-Forwarded-Host\":[\"localhost:8080\"],\"X-Forwarded-Via\":[\"KrakenD Version 2.12.1\"],\"X-Y-Z\":[\"true\"]},\"path\":\"/param_forwarding/bar\",\"query\":{\"foo\":[\"foo\"]}}",
"header": {
"content-type": ["application/json; charset=utf-8"],
"Cache-Control": ["public, max-age=3600"],
"X-Krakend-Completed": ["true"]
}
}
}