Skip to main content

Parameters​

See plugin common configurations for configuration options available to all plugins.

  • max_req_body_size

    integer

    default: 1048576

    vaild vaule:

    = 1


    Maximum size in bytes of a compressed request body, applied both to the body as it arrives and to the decompressed result. A body beyond this size is rejected with 413. The limit is applied while decompressing, so an oversized payload is never buffered in full.

    The plugin does not read a request without a Content-Encoding header, so this limit does not apply to it. Use the gateway's client_max_body_size setting to limit uncompressed request bodies.

    Available in API7 Enterprise from version 3.10.9.

  • forward_compressed

    boolean

    default: false


    If true, the upstream receives a compressed body instead of the decompressed one. The plugins that run before the request is proxied still read the decompressed body.

    Available in API7 Enterprise from version 3.10.9.