Scoop API

scoop:scoop.http.client:0.1.0

RequestBodyLengthException

class RequestBodyLengthException

source · line 12
public
public class RequestBodyLengthException public constructor(
    /**
     * The declared exact body length.
     */
    public val expectedLength: Long,
        /**
         * Bytes accepted before the mismatch.
         */
        public val transferredBytes: Long,
        /**
         * The excess write size rejected before transfer, or zero for an early end.
         */
        public val rejectedBytes: Long = 0L
) : Exception(Some("request body does not match its declared length"))

A producer ended before, or attempted to write beyond, its declared body length.

property rejectedBytes

source · line 24
public
public val rejectedBytes: Long = 0L

get: public read-only

The excess write size rejected before transfer, or zero for an early end.

property transferredBytes

source · line 20
public
public val transferredBytes: Long

get: public read-only

Bytes accepted before the mismatch.

property expectedLength

source · line 16
public
public val expectedLength: Long

get: public read-only

The declared exact body length.