Packages

class IncomingMessage extends Object with StObject

An IncomingMessage object is created by Server or ClientRequest and passed as the first argument to the 'request' and 'response' event respectively. It may be used to access response status, headers and data.

Different from its socket value which is a subclass of stream.Duplex, theIncomingMessage itself extends stream.Readable and is created separately to parse and emit the incoming HTTP headers and payload, as the underlying socket may be reused multiple times in case of keep-alive.

Annotations
@JSType() @JSImport("node:http", "IncomingMessage") @native()
Since

v0.1.17

Linear Supertypes
StObject, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IncomingMessage
  2. StObject
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new IncomingMessage(socket: Socket)

Value Members

  1. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  2. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  3. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  4. def toLocaleString(): String
    Definition Classes
    Object
  5. def valueOf(): Any
    Definition Classes
    Object