mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
* re-export http types * update docs
This commit is contained in:
parent
6bdeff194e
commit
7683a741d5
34 changed files with 509 additions and 11 deletions
|
@ -0,0 +1,12 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpBody](./kibana-plugin-public.httpbody.md)
|
||||
|
||||
## HttpBody type
|
||||
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
export declare type HttpBody = BodyInit | null | any;
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpErrorRequest](./kibana-plugin-public.httperrorrequest.md) > [error](./kibana-plugin-public.httperrorrequest.error.md)
|
||||
|
||||
## HttpErrorRequest.error property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
error: Error;
|
||||
```
|
|
@ -0,0 +1,20 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpErrorRequest](./kibana-plugin-public.httperrorrequest.md)
|
||||
|
||||
## HttpErrorRequest interface
|
||||
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
export interface HttpErrorRequest
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [error](./kibana-plugin-public.httperrorrequest.error.md) | <code>Error</code> | |
|
||||
| [request](./kibana-plugin-public.httperrorrequest.request.md) | <code>Request</code> | |
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpErrorRequest](./kibana-plugin-public.httperrorrequest.md) > [request](./kibana-plugin-public.httperrorrequest.request.md)
|
||||
|
||||
## HttpErrorRequest.request property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
request?: Request;
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpErrorResponse](./kibana-plugin-public.httperrorresponse.md) > [error](./kibana-plugin-public.httperrorresponse.error.md)
|
||||
|
||||
## HttpErrorResponse.error property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
error: Error | HttpFetchError;
|
||||
```
|
|
@ -0,0 +1,19 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpErrorResponse](./kibana-plugin-public.httperrorresponse.md)
|
||||
|
||||
## HttpErrorResponse interface
|
||||
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
export interface HttpErrorResponse extends HttpResponse
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [error](./kibana-plugin-public.httperrorresponse.error.md) | <code>Error | HttpFetchError</code> | |
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpFetchOptions](./kibana-plugin-public.httpfetchoptions.md) > [headers](./kibana-plugin-public.httpfetchoptions.headers.md)
|
||||
|
||||
## HttpFetchOptions.headers property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
headers?: HttpHeadersInit;
|
||||
```
|
|
@ -0,0 +1,21 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpFetchOptions](./kibana-plugin-public.httpfetchoptions.md)
|
||||
|
||||
## HttpFetchOptions interface
|
||||
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
export interface HttpFetchOptions extends HttpRequestInit
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [headers](./kibana-plugin-public.httpfetchoptions.headers.md) | <code>HttpHeadersInit</code> | |
|
||||
| [prependBasePath](./kibana-plugin-public.httpfetchoptions.prependbasepath.md) | <code>boolean</code> | |
|
||||
| [query](./kibana-plugin-public.httpfetchoptions.query.md) | <code>HttpFetchQuery</code> | |
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpFetchOptions](./kibana-plugin-public.httpfetchoptions.md) > [prependBasePath](./kibana-plugin-public.httpfetchoptions.prependbasepath.md)
|
||||
|
||||
## HttpFetchOptions.prependBasePath property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
prependBasePath?: boolean;
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpFetchOptions](./kibana-plugin-public.httpfetchoptions.md) > [query](./kibana-plugin-public.httpfetchoptions.query.md)
|
||||
|
||||
## HttpFetchOptions.query property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
query?: HttpFetchQuery;
|
||||
```
|
|
@ -0,0 +1,12 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpFetchQuery](./kibana-plugin-public.httpfetchquery.md)
|
||||
|
||||
## HttpFetchQuery interface
|
||||
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
export interface HttpFetchQuery
|
||||
```
|
|
@ -0,0 +1,12 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpHandler](./kibana-plugin-public.httphandler.md)
|
||||
|
||||
## HttpHandler type
|
||||
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
export declare type HttpHandler = (path: string, options?: HttpFetchOptions) => Promise<HttpBody>;
|
||||
```
|
|
@ -0,0 +1,12 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpHeadersInit](./kibana-plugin-public.httpheadersinit.md)
|
||||
|
||||
## HttpHeadersInit interface
|
||||
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
export interface HttpHeadersInit
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpRequestInit](./kibana-plugin-public.httprequestinit.md) > [body](./kibana-plugin-public.httprequestinit.body.md)
|
||||
|
||||
## HttpRequestInit.body property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
body?: BodyInit | null;
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpRequestInit](./kibana-plugin-public.httprequestinit.md) > [cache](./kibana-plugin-public.httprequestinit.cache.md)
|
||||
|
||||
## HttpRequestInit.cache property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
cache?: RequestCache;
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpRequestInit](./kibana-plugin-public.httprequestinit.md) > [credentials](./kibana-plugin-public.httprequestinit.credentials.md)
|
||||
|
||||
## HttpRequestInit.credentials property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
credentials?: RequestCredentials;
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpRequestInit](./kibana-plugin-public.httprequestinit.md) > [headers](./kibana-plugin-public.httprequestinit.headers.md)
|
||||
|
||||
## HttpRequestInit.headers property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
headers?: HttpHeadersInit;
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpRequestInit](./kibana-plugin-public.httprequestinit.md) > [integrity](./kibana-plugin-public.httprequestinit.integrity.md)
|
||||
|
||||
## HttpRequestInit.integrity property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
integrity?: string;
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpRequestInit](./kibana-plugin-public.httprequestinit.md) > [keepalive](./kibana-plugin-public.httprequestinit.keepalive.md)
|
||||
|
||||
## HttpRequestInit.keepalive property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
keepalive?: boolean;
|
||||
```
|
|
@ -0,0 +1,31 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpRequestInit](./kibana-plugin-public.httprequestinit.md)
|
||||
|
||||
## HttpRequestInit interface
|
||||
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
export interface HttpRequestInit
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [body](./kibana-plugin-public.httprequestinit.body.md) | <code>BodyInit | null</code> | |
|
||||
| [cache](./kibana-plugin-public.httprequestinit.cache.md) | <code>RequestCache</code> | |
|
||||
| [credentials](./kibana-plugin-public.httprequestinit.credentials.md) | <code>RequestCredentials</code> | |
|
||||
| [headers](./kibana-plugin-public.httprequestinit.headers.md) | <code>HttpHeadersInit</code> | |
|
||||
| [integrity](./kibana-plugin-public.httprequestinit.integrity.md) | <code>string</code> | |
|
||||
| [keepalive](./kibana-plugin-public.httprequestinit.keepalive.md) | <code>boolean</code> | |
|
||||
| [method](./kibana-plugin-public.httprequestinit.method.md) | <code>string</code> | |
|
||||
| [mode](./kibana-plugin-public.httprequestinit.mode.md) | <code>RequestMode</code> | |
|
||||
| [redirect](./kibana-plugin-public.httprequestinit.redirect.md) | <code>RequestRedirect</code> | |
|
||||
| [referrer](./kibana-plugin-public.httprequestinit.referrer.md) | <code>string</code> | |
|
||||
| [referrerPolicy](./kibana-plugin-public.httprequestinit.referrerpolicy.md) | <code>ReferrerPolicy</code> | |
|
||||
| [signal](./kibana-plugin-public.httprequestinit.signal.md) | <code>AbortSignal | null</code> | |
|
||||
| [window](./kibana-plugin-public.httprequestinit.window.md) | <code>any</code> | |
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpRequestInit](./kibana-plugin-public.httprequestinit.md) > [method](./kibana-plugin-public.httprequestinit.method.md)
|
||||
|
||||
## HttpRequestInit.method property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
method?: string;
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpRequestInit](./kibana-plugin-public.httprequestinit.md) > [mode](./kibana-plugin-public.httprequestinit.mode.md)
|
||||
|
||||
## HttpRequestInit.mode property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
mode?: RequestMode;
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpRequestInit](./kibana-plugin-public.httprequestinit.md) > [redirect](./kibana-plugin-public.httprequestinit.redirect.md)
|
||||
|
||||
## HttpRequestInit.redirect property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
redirect?: RequestRedirect;
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpRequestInit](./kibana-plugin-public.httprequestinit.md) > [referrer](./kibana-plugin-public.httprequestinit.referrer.md)
|
||||
|
||||
## HttpRequestInit.referrer property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
referrer?: string;
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpRequestInit](./kibana-plugin-public.httprequestinit.md) > [referrerPolicy](./kibana-plugin-public.httprequestinit.referrerpolicy.md)
|
||||
|
||||
## HttpRequestInit.referrerPolicy property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
referrerPolicy?: ReferrerPolicy;
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpRequestInit](./kibana-plugin-public.httprequestinit.md) > [signal](./kibana-plugin-public.httprequestinit.signal.md)
|
||||
|
||||
## HttpRequestInit.signal property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
signal?: AbortSignal | null;
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpRequestInit](./kibana-plugin-public.httprequestinit.md) > [window](./kibana-plugin-public.httprequestinit.window.md)
|
||||
|
||||
## HttpRequestInit.window property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
window?: any;
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpResponse](./kibana-plugin-public.httpresponse.md) > [body](./kibana-plugin-public.httpresponse.body.md)
|
||||
|
||||
## HttpResponse.body property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
body?: HttpBody;
|
||||
```
|
|
@ -0,0 +1,21 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpResponse](./kibana-plugin-public.httpresponse.md)
|
||||
|
||||
## HttpResponse interface
|
||||
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
export interface HttpResponse
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [body](./kibana-plugin-public.httpresponse.body.md) | <code>HttpBody</code> | |
|
||||
| [request](./kibana-plugin-public.httpresponse.request.md) | <code>Request</code> | |
|
||||
| [response](./kibana-plugin-public.httpresponse.response.md) | <code>Response</code> | |
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpResponse](./kibana-plugin-public.httpresponse.md) > [request](./kibana-plugin-public.httpresponse.request.md)
|
||||
|
||||
## HttpResponse.request property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
request: Request;
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [HttpResponse](./kibana-plugin-public.httpresponse.md) > [response](./kibana-plugin-public.httpresponse.response.md)
|
||||
|
||||
## HttpResponse.response property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
response?: Response;
|
||||
```
|
|
@ -40,7 +40,14 @@ The plugin integrates with the core system via lifecycle events: `setup`<!-- -->
|
|||
| [ErrorToastOptions](./kibana-plugin-public.errortoastoptions.md) | |
|
||||
| [FatalErrorInfo](./kibana-plugin-public.fatalerrorinfo.md) | Represents the <code>message</code> and <code>stack</code> of a fatal Error |
|
||||
| [FatalErrorsSetup](./kibana-plugin-public.fatalerrorssetup.md) | FatalErrors stop the Kibana Public Core and displays a fatal error screen with details about the Kibana build and the error. |
|
||||
| [HttpErrorRequest](./kibana-plugin-public.httperrorrequest.md) | |
|
||||
| [HttpErrorResponse](./kibana-plugin-public.httperrorresponse.md) | |
|
||||
| [HttpFetchOptions](./kibana-plugin-public.httpfetchoptions.md) | |
|
||||
| [HttpFetchQuery](./kibana-plugin-public.httpfetchquery.md) | |
|
||||
| [HttpHeadersInit](./kibana-plugin-public.httpheadersinit.md) | |
|
||||
| [HttpInterceptor](./kibana-plugin-public.httpinterceptor.md) | |
|
||||
| [HttpRequestInit](./kibana-plugin-public.httprequestinit.md) | |
|
||||
| [HttpResponse](./kibana-plugin-public.httpresponse.md) | |
|
||||
| [HttpServiceBase](./kibana-plugin-public.httpservicebase.md) | |
|
||||
| [I18nStart](./kibana-plugin-public.i18nstart.md) | I18nStart.Context is required by any localizable React component from @<!-- -->kbn/i18n and @<!-- -->elastic/eui packages and is supposed to be used as the topmost component for any i18n-compatible React tree. |
|
||||
| [LegacyNavLink](./kibana-plugin-public.legacynavlink.md) | |
|
||||
|
@ -58,6 +65,8 @@ The plugin integrates with the core system via lifecycle events: `setup`<!-- -->
|
|||
| --- | --- |
|
||||
| [ChromeHelpExtension](./kibana-plugin-public.chromehelpextension.md) | |
|
||||
| [ChromeNavLinkUpdateableFields](./kibana-plugin-public.chromenavlinkupdateablefields.md) | |
|
||||
| [HttpBody](./kibana-plugin-public.httpbody.md) | |
|
||||
| [HttpHandler](./kibana-plugin-public.httphandler.md) | |
|
||||
| [HttpSetup](./kibana-plugin-public.httpsetup.md) | |
|
||||
| [HttpStart](./kibana-plugin-public.httpstart.md) | |
|
||||
| [PluginInitializer](./kibana-plugin-public.plugininitializer.md) | The <code>plugin</code> export at the root of a plugin's <code>public</code> directory should conform to this interface. |
|
||||
|
|
|
@ -50,7 +50,7 @@ import {
|
|||
ChromeRecentlyAccessedHistoryItem,
|
||||
} from './chrome';
|
||||
import { FatalErrorsSetup, FatalErrorInfo } from './fatal_errors';
|
||||
import { HttpServiceBase, HttpSetup, HttpStart, HttpInterceptor } from './http';
|
||||
import { HttpSetup, HttpStart } from './http';
|
||||
import { I18nStart } from './i18n';
|
||||
import { InjectedMetadataSetup, InjectedMetadataStart, LegacyNavLink } from './injected_metadata';
|
||||
import {
|
||||
|
@ -70,6 +70,19 @@ import { DocLinksStart } from './doc_links';
|
|||
/** @interal */
|
||||
export { CoreContext, CoreSystem } from './core_system';
|
||||
export { RecursiveReadonly } from '../utils';
|
||||
export {
|
||||
HttpServiceBase,
|
||||
HttpHeadersInit,
|
||||
HttpRequestInit,
|
||||
HttpFetchOptions,
|
||||
HttpFetchQuery,
|
||||
HttpErrorResponse,
|
||||
HttpErrorRequest,
|
||||
HttpInterceptor,
|
||||
HttpResponse,
|
||||
HttpHandler,
|
||||
HttpBody,
|
||||
} from './http';
|
||||
|
||||
/**
|
||||
* Core services exposed to the `Plugin` setup lifecycle
|
||||
|
@ -151,8 +164,6 @@ export {
|
|||
ErrorToastOptions,
|
||||
FatalErrorInfo,
|
||||
FatalErrorsSetup,
|
||||
HttpInterceptor,
|
||||
HttpServiceBase,
|
||||
HttpSetup,
|
||||
HttpStart,
|
||||
I18nStart,
|
||||
|
|
|
@ -329,26 +329,104 @@ export interface FatalErrorsSetup {
|
|||
get$: () => Rx.Observable<FatalErrorInfo>;
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export type HttpBody = BodyInit | null | any;
|
||||
|
||||
// @public (undocumented)
|
||||
export interface HttpErrorRequest {
|
||||
// (undocumented)
|
||||
error: Error;
|
||||
// (undocumented)
|
||||
request?: Request;
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export interface HttpErrorResponse extends HttpResponse {
|
||||
// Warning: (ae-forgotten-export) The symbol "HttpFetchError" needs to be exported by the entry point index.d.ts
|
||||
//
|
||||
// (undocumented)
|
||||
error: Error | HttpFetchError;
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export interface HttpFetchOptions extends HttpRequestInit {
|
||||
// (undocumented)
|
||||
headers?: HttpHeadersInit;
|
||||
// (undocumented)
|
||||
prependBasePath?: boolean;
|
||||
// (undocumented)
|
||||
query?: HttpFetchQuery;
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export interface HttpFetchQuery {
|
||||
// (undocumented)
|
||||
[key: string]: string | number | boolean | undefined;
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export type HttpHandler = (path: string, options?: HttpFetchOptions) => Promise<HttpBody>;
|
||||
|
||||
// @public (undocumented)
|
||||
export interface HttpHeadersInit {
|
||||
// (undocumented)
|
||||
[name: string]: any;
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export interface HttpInterceptor {
|
||||
// Warning: (ae-forgotten-export) The symbol "HttpInterceptController" needs to be exported by the entry point index.d.ts
|
||||
//
|
||||
// (undocumented)
|
||||
request?(request: Request, controller: HttpInterceptController): Promise<Request> | Request | void;
|
||||
// Warning: (ae-forgotten-export) The symbol "HttpErrorRequest" needs to be exported by the entry point index.d.ts
|
||||
//
|
||||
// (undocumented)
|
||||
requestError?(httpErrorRequest: HttpErrorRequest, controller: HttpInterceptController): Promise<Request> | Request | void;
|
||||
// Warning: (ae-forgotten-export) The symbol "HttpResponse" needs to be exported by the entry point index.d.ts
|
||||
//
|
||||
// (undocumented)
|
||||
response?(httpResponse: HttpResponse, controller: HttpInterceptController): Promise<HttpResponse> | HttpResponse | void;
|
||||
// Warning: (ae-forgotten-export) The symbol "HttpErrorResponse" needs to be exported by the entry point index.d.ts
|
||||
//
|
||||
// (undocumented)
|
||||
responseError?(httpErrorResponse: HttpErrorResponse, controller: HttpInterceptController): Promise<HttpResponse> | HttpResponse | void;
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export interface HttpRequestInit {
|
||||
// (undocumented)
|
||||
body?: BodyInit | null;
|
||||
// (undocumented)
|
||||
cache?: RequestCache;
|
||||
// (undocumented)
|
||||
credentials?: RequestCredentials;
|
||||
// (undocumented)
|
||||
headers?: HttpHeadersInit;
|
||||
// (undocumented)
|
||||
integrity?: string;
|
||||
// (undocumented)
|
||||
keepalive?: boolean;
|
||||
// (undocumented)
|
||||
method?: string;
|
||||
// (undocumented)
|
||||
mode?: RequestMode;
|
||||
// (undocumented)
|
||||
redirect?: RequestRedirect;
|
||||
// (undocumented)
|
||||
referrer?: string;
|
||||
// (undocumented)
|
||||
referrerPolicy?: ReferrerPolicy;
|
||||
// (undocumented)
|
||||
signal?: AbortSignal | null;
|
||||
// (undocumented)
|
||||
window?: any;
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export interface HttpResponse {
|
||||
// (undocumented)
|
||||
body?: HttpBody;
|
||||
// (undocumented)
|
||||
request: Request;
|
||||
// (undocumented)
|
||||
response?: Response;
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export interface HttpServiceBase {
|
||||
// (undocumented)
|
||||
|
@ -361,8 +439,6 @@ export interface HttpServiceBase {
|
|||
};
|
||||
// (undocumented)
|
||||
delete: HttpHandler;
|
||||
// Warning: (ae-forgotten-export) The symbol "HttpHandler" needs to be exported by the entry point index.d.ts
|
||||
//
|
||||
// (undocumented)
|
||||
fetch: HttpHandler;
|
||||
// (undocumented)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue