Packages

object BodyParserUtils

Source
BodyParsers.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BodyParserUtils
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def contentLengthHeaderExceedsMaxLength(request: RequestHeader, maxLength: Long): Boolean

    request

    The request whose Content-Length header will be checked (if it exists).

    maxLength

    Maximum allowed bytes.

    returns

    true if the request's Content-Length header value is greater than maxLength. false otherwise or if the request does not have a Content-Length header (or if it can't be parsed).