Interface BufferSettingsOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    BufferSettings, BufferSettings.Builder

    public interface BufferSettingsOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean getAllowPartialMessage()
      When this field is true, Envoy will buffer the message until ``max_request_bytes`` is reached.
      int getMaxRequestBytes()
      Sets the maximum size of a message body that the filter will hold in memory.
      boolean getPackAsBytes()
      If true, the body sent to the external authorization service is set with raw bytes, it sets the :ref:`raw_body<envoy_v3_api_field_service.auth.v3.AttributeContext.HttpRequest.raw_body>` field of HTTP request attribute context.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getMaxRequestBytes

        int getMaxRequestBytes()
         Sets the maximum size of a message body that the filter will hold in memory. Envoy will return
         ``HTTP 413`` and will *not* initiate the authorization process when buffer reaches the number
         set in this field. Note that this setting will have precedence over :ref:`failure_mode_allow
         <envoy_v3_api_field_extensions.filters.http.ext_authz.v3.ExtAuthz.failure_mode_allow>`.
         
        uint32 max_request_bytes = 1 [(.validate.rules) = { ... }
        Returns:
        The maxRequestBytes.
      • getAllowPartialMessage

        boolean getAllowPartialMessage()
         When this field is true, Envoy will buffer the message until ``max_request_bytes`` is reached.
         The authorization request will be dispatched and no 413 HTTP error will be returned by the
         filter.
         
        bool allow_partial_message = 2;
        Returns:
        The allowPartialMessage.
      • getPackAsBytes

        boolean getPackAsBytes()
         If true, the body sent to the external authorization service is set with raw bytes, it sets
         the :ref:`raw_body<envoy_v3_api_field_service.auth.v3.AttributeContext.HttpRequest.raw_body>`
         field of HTTP request attribute context. Otherwise, :ref:`
         body<envoy_v3_api_field_service.auth.v3.AttributeContext.HttpRequest.body>` will be filled
         with UTF-8 string request body.
         
        bool pack_as_bytes = 3;
        Returns:
        The packAsBytes.