Glossary
This is a glossary of the core terms around SDK packages, along with their type signatures. The types are documented using Flow notation.
ClientRequest
A ClientRequest is an object describing the request that needs to be executed by the sdk-client
. This is also the signature of the request object passed to a middleware.
ClientResponse
A ClientResponse is an object describing the response object passed to a middleware.
Middleware
A Middleware is a higher-order function that composes a dispatch function to return a new dispatch function.
Middleware is composable using function composition. It is used for authentication, making http requests, logging requests, etc. See section about middlewares for more information.
Client
A Client is an object that contains functions to work with HTTP requests.
execute(request)
is the main function to use for doing HTTP requests, using the provided middlewares.
ClientResult
A ClientResult is the object returned by execute
, depending if the response was resolved or rejected.
HttpErrorType
A HttpErrorType describes the shape of the error
rejected by execute
. The error
is typed (e.g. BadRequest
, Unauthorized
) and contains useful meta information to help debug the cause of the error.
SyncAction
Last updated