Packages

c

io.scalajs.nodejs.http

ClientRequestExtensions

implicit final class ClientRequestExtensions[T <: ClientRequest] extends AnyVal

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

Instance Constructors

  1. new ClientRequestExtensions(client: T)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def endFuture(data: String, encoding: String): Future[Unit]
    Annotations
    @inline()
  6. def endFuture(data: Uint8Array): Future[Unit]
    Annotations
    @inline()
  7. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  8. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  9. def onAbort(callback: () => Any): T

    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()
  10. def onConnect(callback: (IncomingMessage, Duplex, Buffer) => Any): T

    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 <stream.Duplex> - head <Buffer>

    Annotations
    @inline()
  11. def onContinue(callback: () => Any): T

    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 onInformation(callback: (Information) => Any): T
    Annotations
    @inline()
  13. def onResponse(callback: (IncomingMessage) => Any): T

    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()
  14. def onSocket(callback: (Duplex) => Any): T

    Emitted after a socket is assigned to this request.

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

    Annotations
    @inline()
  15. def onTimeout(callback: () => Any): T
    Annotations
    @inline()
  16. def onUpgrade(callback: (IncomingMessage, Socket, Buffer) => Any): T

    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()
  17. def toString(): String
    Definition Classes
    Any
  18. def writeFuture(chunk: String, encoding: String): Future[Unit]
    Annotations
    @inline()
  19. def writeFuture(chunk: Uint8Array): Future[Unit]
    Annotations
    @inline()

Inherited from AnyVal

Inherited from Any

Ungrouped