Class

io.scalajs.nodejs.http.ClientRequest

ClientRequestEvents

Related Doc: package ClientRequest

Permalink

implicit final class ClientRequestEvents extends AnyVal

Client Request Events

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ClientRequestEvents
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ClientRequestEvents(client: ClientRequest)

    Permalink

Value Members

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

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

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

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

    Permalink
    Definition Classes
    Any
  5. val client: ClientRequest

    Permalink
  6. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  7. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  8. def onAbort(callback: () ⇒ Any): client.type

    Permalink

    Emitted when the request has been aborted by the client.

    Emitted when the request has been aborted by the client. This event is only emitted on the first call to abort().

    Annotations
    @inline()
  9. def onAborted(callback: () ⇒ Any): client.type

    Permalink

    Emitted when the request has been aborted by the server and the network socket has closed.

    Emitted when the request has been aborted by the server and the network socket has closed.

    Annotations
    @inline()
  10. def onConnect(callback: (IncomingMessage, Socket, Buffer) ⇒ Any): client.type

    Permalink

    Emitted each time a server responds to a request with a CONNECT method.

    Emitted each time a server responds to a request with a CONNECT method. If this event is not being listened for, clients receiving a CONNECT method will have their connections closed. - response <http.IncomingMessage> - socket <net.Socket> - head <Buffer>

    Annotations
    @inline()
  11. def onContinue(callback: () ⇒ Any): client.type

    Permalink

    Emitted when the server sends a '100 Continue' HTTP response, usually because the request contained 'Expect: 100-continue'.

    Emitted when the server sends a '100 Continue' HTTP response, usually because the request contained 'Expect: 100-continue'. This is an instruction that the client should send the request body.

    Annotations
    @inline()
  12. def onResponse(callback: (IncomingMessage) ⇒ Any): client.type

    Permalink

    Emitted when a response is received to this request.

    Emitted when a response is received to this request. This event is emitted only once. The response argument will be an instance of http.IncomingMessage. - response <http.IncomingMessage>

    Annotations
    @inline()
  13. def onSocket(callback: (Socket) ⇒ Any): client.type

    Permalink

    Emitted after a socket is assigned to this request.

    Emitted after a socket is assigned to this request. - socket <net.Socket>

    Annotations
    @inline()
  14. def onUpgrade(callback: (IncomingMessage, Socket, Buffer) ⇒ Any): client.type

    Permalink

    Emitted each time a server responds to a request with an upgrade.

    Emitted each time a server responds to a request with an upgrade. If this event isn't being listened for, clients receiving an upgrade header will have their connections closed. - response <http.IncomingMessage> - socket <net.Socket> - head <Buffer>

    Annotations
    @inline()
  15. def toString(): String

    Permalink
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped