Constructor.
The remote URL.
Backoff remaining time, in milliseconds. Defaults to zero if no backoff is ongoing.
The current server protocol version, eg. v1
.
Process batch requests, chunking them according to the batch_max_requests server setting when needed.
The list of batch subrequests to perform.
Get the value of "headers" for a given request, merging the per-request headers with our own "default" headers.
Note that unlike other options, headers aren't overridden, but merged instead.
The options for a request.
Retrieves the server's "hello" endpoint. This endpoint reveals server capabilities and settings as well as telling the client "who they are" according to their given authorization headers.
As _getSafe, but for "retry".
Get the value of "safe" for a given request, using the per-request option if present or falling back to our default otherwise.
The options for a request.
Registers HTTP events.
Retrieve a bucket object to perform operations on it.
The bucket name.
Creates a new bucket on the server.
The bucket name (optional).
Executes an atomic HTTP request.
The request object.
Retrieve authenticated user information.
Retrieve server capabilities information.
Retrieves server information and persist them locally. This operation is usually performed a single time during the instance lifecycle.
Retrieves Kinto server settings.
Retrieve authenticated user information.
Retrieves the list of buckets.
Lists all permissions.
Fetch some pages from a paginated list, following the next-page
header automatically until we have fetched the requested number
of pages. Return a response with a .next()
method that can be
called to fetch more results.
The path to make the request to.
The parameters to use when making the request.
Set client "headers" for every request, updating previous headers (if any).
The headers to merge with existing ones.
Generated using TypeDoc
High level HTTP client for the Kinto API.
const client = new KintoClient("https://kinto.dev.mozaws.net/v1"); client.bucket("default") .collection("my-blog") .createRecord({title: "First article"}) .then(console.log.bind(console)) .catch(console.error.bind(console));