implicit final class ClientRequestExtensions extends AnyVal
- Alphabetic
- By Inheritance
- ClientRequestExtensions
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ClientRequestExtensions(client: ClientRequest)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val client: ClientRequest
-
def
endFuture(data: String, encoding: String): Future[Unit]
- Annotations
- @inline()
-
def
endFuture(data: Uint8Array): Future[Unit]
- Annotations
- @inline()
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
onAbort(callback: () ⇒ Any): client.type
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()
-
def
onAborted(callback: () ⇒ Any): client.type
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()
-
def
onConnect(callback: (IncomingMessage, Socket, Buffer) ⇒ Any): client.type
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()
-
def
onContinue(callback: () ⇒ Any): client.type
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()
-
def
onResponse(callback: (IncomingMessage) ⇒ Any): client.type
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()
-
def
onSocket(callback: (Socket) ⇒ Any): client.type
Emitted after a socket is assigned to this request.
Emitted after a socket is assigned to this request. - socket <net.Socket>
- Annotations
- @inline()
-
def
onUpgrade(callback: (IncomingMessage, Socket, Buffer) ⇒ Any): client.type
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()
-
def
toString(): String
- Definition Classes
- Any
-
def
writeFuture(chunk: String, encoding: String): Future[Unit]
- Annotations
- @inline()
-
def
writeFuture(chunk: Uint8Array): Future[Unit]
- Annotations
- @inline()