kinetex - v1.0.0-rc.1
    Preparing search index...

    Interface SizeLimitConfig

    Configuration for limiting the maximum response body size.

    interface SizeLimitConfig {
        maxBytes: number;
        onExceed?: "abort" | "throw" | "truncate";
        onExceedCallback?: (bytesRead: number, limit: number) => void;
    }
    Index

    Properties

    maxBytes: number

    Maximum response body size in bytes. Throws if exceeded.

    onExceed?: "abort" | "throw" | "truncate"

    What to do when limit is exceeded: "throw" | "truncate" | "abort". Default: "throw"

    onExceedCallback?: (bytesRead: number, limit: number) => void

    Called when the limit is about to be exceeded (before action).