implicit final class ClientRequestExtensions[T <: ClientRequest] extends AnyVal
- Alphabetic
- By Inheritance
- ClientRequestExtensions
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ClientRequestExtensions(client: T)
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
-
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): 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()
-
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()
-
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()
-
def
onInformation(callback: (Information) ⇒ Any): T
- Annotations
- @inline()
-
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()
-
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()
-
def
onTimeout(callback: () ⇒ Any): T
- Annotations
- @inline()
-
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()
-
def
toString(): String
- Definition Classes
- Any
-
def
writeFuture(chunk: String, encoding: String): Future[Unit]
- Annotations
- @inline()
-
def
writeFuture(chunk: Uint8Array): Future[Unit]
- Annotations
- @inline()