implicit final class RequestEnrichment[T, E] extends AnyVal
- Alphabetic
- By Inheritance
- RequestEnrichment
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
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
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
onBuild(listener: (Request[T, E]) ⇒ Any): request.type
Adds a listener that is triggered when the request payload is being built.
Adds a listener that is triggered when the request payload is being built.
- listener
- Callback to run when the request's payload is being built.
- Annotations
- @inline()
-
def
onComplete(listener: (Response[T, E]) ⇒ Any): request.type
Adds a listener that is triggered whenever a request cycle completes.
Adds a listener that is triggered whenever a request cycle completes.
- listener
- Callback to run when the request cycle completes.
- Annotations
- @inline()
-
def
onError(listener: (AWSError, Response[T, E]) ⇒ Any): request.type
Adds a listener that is triggered when an error occurs at any point during the request.
Adds a listener that is triggered when an error occurs at any point during the request.
- listener
- Callback to run when the request errors at any point.
- Annotations
- @inline()
-
def
onExtractData(listener: (Response[T, E]) ⇒ Any): request.type
Adds a listener that is triggered in successful requests to allow listeners to de-serialize the response body into response.data.
Adds a listener that is triggered in successful requests to allow listeners to de-serialize the response body into response.data.
- listener
- Callback to run when the request succeeded.
- Annotations
- @inline()
-
def
onExtractError(listener: (Response[T, E]) ⇒ Any): request.type
Adds a listener that is triggered on all non-2xx requests so that listeners can extract error details from the response body.
Adds a listener that is triggered on all non-2xx requests so that listeners can extract error details from the response body.
- listener
- Callback to run when the request failed.
- Annotations
- @inline()
-
def
onHttpData(listener: (|[Buffer, Uint8Array], Response[T, E]) ⇒ Any): request.type
Adds a listener that is triggered when data is sent by the remote server.
Adds a listener that is triggered when data is sent by the remote server.
- listener
- Callback to run when data is sent by the remote server.
- Annotations
- @inline()
-
def
onHttpDone(listener: (Response[T, E]) ⇒ Any): request.type
Adds a listener that is triggered when the server is finished sending data.
Adds a listener that is triggered when the server is finished sending data.
- listener
- Callback to run when the server is finished sending data.
- Annotations
- @inline()
-
def
onHttpDownloadProgress(listener: (Progress, Response[T, E]) ⇒ Any): request.type
Adds a listener that is triggered when the HTTP request has downloaded more data.
Adds a listener that is triggered when the HTTP request has downloaded more data.
- listener
- Callback to run when the HTTP request has downloaded more data.
- Annotations
- @inline()
-
def
onHttpError(listener: (Error, Response[T, E]) ⇒ Any): request.type
Adds a listener that is triggered when the HTTP request failed.
Adds a listener that is triggered when the HTTP request failed.
- listener
- Callback to run when the HTTP request failed.
- Annotations
- @inline()
-
def
onHttpHeaders(listener: (StatusCode, HttpHeaders, Response[T, E], StatusMessage) ⇒ Any): request.type
Adds a listener that is triggered when headers are sent by the remote server.
Adds a listener that is triggered when headers are sent by the remote server.
- listener
- Callback to run when the headers are sent by the remote server.
- Annotations
- @inline()
-
def
onHttpUploadProgress(listener: (Progress, Response[T, E]) ⇒ Any): request.type
Adds a listener that is triggered when the HTTP request has uploaded more data.
Adds a listener that is triggered when the HTTP request has uploaded more data.
- listener
- Callback to run when the HTTP request has uploaded more data.
- Annotations
- @inline()
-
def
onRetry(listener: (Response[T, E]) ⇒ Any): request.type
Adds a listener that is triggered when a request failed and might need to be retried or redirected.
Adds a listener that is triggered when a request failed and might need to be retried or redirected.
- listener
- Callback to run when the request failed and may be retried.
- Annotations
- @inline()
-
def
onSend(listener: (Response[T, E]) ⇒ Any): request.type
Adds a listener that is triggered when a request is ready to be sent.
Adds a listener that is triggered when a request is ready to be sent.
- listener
- Callback to run when the request is ready to be sent.
- Annotations
- @inline()
-
def
onSign(listener: (Request[T, E]) ⇒ Any): request.type
Adds a listener that is triggered when a request is being signed.
Adds a listener that is triggered when a request is being signed.
- listener
- Callback to run when the request is being signed.
- Annotations
- @inline()
-
def
onSuccess(listener: (Response[T, E]) ⇒ Any): request.type
Adds a listener that is triggered when the request completed successfully.
Adds a listener that is triggered when the request completed successfully.
- listener
- Callback to run when the request completed successfully.
- Annotations
- @inline()
-
def
onValidate(listener: (Request[T, E]) ⇒ Any): request.type
Adds a listener that is triggered when a request is being validated.
Adds a listener that is triggered when a request is being validated.
- listener
- Callback to run when the request is being validated.
- Annotations
- @inline()
- val request: Request[T, E]
-
def
toString(): String
- Definition Classes
- Any