Skip to content

Body limit in oak@13+ #663

@andreial

Description

@andreial

Before oak@13, we were able to add a limit to body:

ctx.request.body({ type: 'json', limit: maxHttpBodyBytes }).value

which was throwing BadRequest whenever the request body was exceeding that limit.

Is there a way to do this using the new body API?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions