drupflare/worker - v1.0.4
    Preparing search index...

    Function bodyTooLarge

    • Whether a request body is too large to hand to PHP, by what it declares.

      Reads Content-Length, which the platform holds the body to; a chunked request declares none and is measured while it is read (readBounded). A form body is capped by MAX_BODY_BYTES and an upload by MAX_UPLOAD_BYTES.

      Parameters

      • request: Request
      • Optionalenv: BodyLimitEnv

        0 for either limit disables that guard entirely

      Returns BodyTooLarge | undefined