MD
Size: a a a
MD
DS
T🐜
DS
T🐜
DS
DS
T🐜
GK
DS
OK
function envoy_on_request(request_handle)
-- Make an HTTP call to an upstream host with the following headers, body, and timeout.
local headers, body = request_handle:httpCall(
"outbound|8080||app-service.default.svc.cluster.local",
{
[":method"] = "GET",
[":path"] = "/api/",
[":authority"] = "app-service.default.svc.cluster.local",
["authorization"] = get_header(request_handle, "authorization")
},
"authorize call",
5000)
end