Back to Pocketbase

Function bodyLimit

static/jsvm/functions/_apis.bodyLimit.html

latest842 B
Original Source

Function bodyLimit

BodyLimit returns a middleware handler that changes the default request body size limit.

If limitBytes <= 0, no limit is applied.

Otherwise, if the request body size exceeds the configured limitBytes, it sends 413 error response.

Parameters

limitBytes: number

Returns hook.Handler<RequestEvent>

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

Generated using TypeDoc