GitHub

MaxBodySize

API reference for MaxBodySize.

The most bytes a body read takes, 10 MiB by default (None: no limit); a larger body fails as BodyTooLarge. Effect has no default limit; a request body is the client's to size, so pyfect bounds it.

Functions

default

default() -> ByteSize | None

Returns ByteSize | None

@classmethod
def default(cls) -> ByteSize | None:
    return mebibytes(10)