implicit final class ClientRequestEnrichment extends AnyVal
Client Request Extensions
- Alphabetic
- By Inheritance
- ClientRequestEnrichment
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ClientRequestEnrichment(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: Any, encoding: String): Promise[Any]
- Annotations
- @inline()
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
onAbort(callback: Function): 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
onCheckExpectation(callback: Function): client.type
Emitted each time a request with an http Expect header is received, where the value is not 100-continue.
Emitted each time a request with an http Expect header is received, where the value is not 100-continue. If this event isn't listened for, the server will automatically respond with a 417 Expectation Failed as appropriate. Note that when this event is emitted and handled, the request event will not be emitted.
- Annotations
- @inline()
-
def
onConnect(callback: Function): 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 isn't being listened for, clients receiving a CONNECT method will have their connections closed.
- Annotations
- @inline()
-
def
onContinue(callback: Function): 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: Function): 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.
- Annotations
- @inline()
-
def
onSocket(callback: Function): client.type
Emitted after a socket is assigned to this request.
Emitted after a socket is assigned to this request.
- Annotations
- @inline()
-
def
onUpgrade(callback: Function): 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.
- Annotations
- @inline()
-
def
toString(): String
- Definition Classes
- Any
-
def
writeFuture(chunk: Any, encoding: String): Promise[Any]
- Annotations
- @inline()