Home

envoy.extensions.http.custom_response.local_response_policy.v3.LocalResponsePolicy

Example

Disclaimer: The example is meant to show what methods are available on the object and does not necessarily constitute working code.
local types = import 'types.libsonnet';

types.envoy.extensions.http.custom_response.local_response_policy.v3.LocalResponsePolicy
.withBody(types.envoy.config.core.v3.DataSource)
.withBodyFormat(types.envoy.config.core.v3.SubstitutionFormatString)
.withResponseHeadersToAdd([ types.envoy.config.core.v3.HeaderValueOption ])
.withStatusCode(1)
._validate()

Fields

Name Type One-of group Required Constraints
body envoy.config.core.v3.DataSource  
body_format envoy.config.core.v3.SubstitutionFormatString  
response_headers_to_add [] envoy.config.core.v3.HeaderValueOption   {"Repeated":{"max_items":1000}}
status_code google.protobuf.UInt32Value   {"Uint32":{"gte":200,"lt":600}}