Object/Trait

io.scalajs.npm.bodyparser

BodyParser

Related Docs: trait BodyParser | package bodyparser

Permalink

object BodyParser extends Object with BodyParser

BodyParser Singleton

Annotations
@native() @JSImport( "body-parser" , JSImport.Namespace )
Linear Supertypes
BodyParser, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BodyParser
  2. BodyParser
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  14. def json(options: |[JsonBodyOptions, RawOptions] = js.native): Router

    Permalink

    Returns middleware that only parses json.

    Returns middleware that only parses json. This parser accepts any Unicode encoding of the body and supports automatic inflation of gzip and deflate encodings.

    options

    the optional options object

    returns

    A new body object containing the parsed data is populated on the request object after the middleware (i.e. req.body).

    Definition Classes
    BodyParser
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  19. def raw(options: |[RawBodyOptions, RawOptions] = js.native): Router

    Permalink

    Returns middleware that parses all bodies as a Buffer.

    Returns middleware that parses all bodies as a Buffer. This parser supports automatic inflation of gzip and deflate encodings.

    options

    the optional options object

    returns

    A new body object containing the parsed data is populated on the request object after the middleware (i.e. req.body). This will be a Buffer object of the body.

    Definition Classes
    BodyParser
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def text(options: |[TextBodyOptions, RawOptions] = js.native): Router

    Permalink

    Returns middleware that parses all bodies as a string.

    Returns middleware that parses all bodies as a string. This parser supports automatic inflation of gzip and deflate encodings.

    options

    the optional options object

    returns

    A new body string containing the parsed data is populated on the request object after the middleware (i.e. req.body). This will be a string of the body.

    Definition Classes
    BodyParser
  22. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  23. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  24. def urlencoded(options: |[UrlEncodedBodyOptions, RawOptions] = js.native): Router

    Permalink

    Returns middleware that only parses urlencoded bodies.

    Returns middleware that only parses urlencoded bodies. This parser accepts only UTF-8 encoding of the body and supports automatic inflation of gzip and deflate encodings.

    options

    the optional options object

    returns

    A new body object containing the parsed data is populated on the request object after the middleware (i.e. req.body). This object will contain key-value pairs, where the value can be a string or array (when extended is false), or any type (when extended is true).

    Definition Classes
    BodyParser
  25. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from BodyParser

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped