mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
* Allow passing in a signal to abort an Elasticsearch request using the cluster client * Go back to using promises (which still return abort method) and update test * Update docs * Explicitly return Promise<any> instead of {}
1.1 KiB
1.1 KiB
Home > kibana-plugin-server > CallAPIOptions
CallAPIOptions interface
The set of options that defines how API call should be made and result be processed.
Signature:
export interface CallAPIOptions
Properties
Property | Type | Description |
---|---|---|
signal | AbortSignal |
A signal object that allows you to abort the request via an AbortController object. |
wrap401Errors | boolean |
Indicates whether 401 Unauthorized errors returned from the Elasticsearch API should be wrapped into Boom error instances with properly set WWW-Authenticate header that could have been returned by the API itself. If API didn't specify that then Basic realm="Authorization Required" is used as WWW-Authenticate . |