Hierarchy

  • bodyLimit
  • BodyLimit returns a BodyLimit middleware.

    BodyLimit middleware sets the maximum allowed size for a request body, if the size exceeds the configured limit, it sends "413 - Request Entity Too Large" response. The BodyLimit is determined based on both Content-Length request header and actual content read, which makes it super secure.

    Parameters

    • limitBytes: number

    Returns MiddlewareFunc

Generated using TypeDoc