ratelimit: support returning custom response bodies for non-OK responses from the external ratelimit service (#14189)

Signed-off-by: John Esmet <john.esmet@gmail.com>

Mirrored from https://github.com/envoyproxy/envoy @ 6474355e7a977e255fe88e9a2b97d3d764712852
pull/623/head
data-plane-api(Azure Pipelines) 4 years ago
parent e1366d1ec1
commit e7a35e75af
  1. 4
      envoy/service/ratelimit/v3/rls.proto

@ -51,6 +51,7 @@ message RateLimitRequest {
}
// A response from a ShouldRateLimit call.
// [#next-free-field: 6]
message RateLimitResponse {
option (udpa.annotations.versioning).previous_message_type =
"envoy.service.ratelimit.v2.RateLimitResponse";
@ -131,4 +132,7 @@ message RateLimitResponse {
// A list of headers to add to the request when forwarded
repeated config.core.v3.HeaderValue request_headers_to_add = 4;
// A response body to send to the downstream client when the response code is not OK.
bytes raw_body = 5;
}

Loading…
Cancel
Save