Home > kibana-plugin-core-server > RequestHandlerContext
Plugin specific context passed to a route handler.
Provides the following clients and services: - savedObjects.client - Saved Objects client which uses the credentials of the incoming request - savedObjects.typeRegistry - Type registry containing all the registered types. - elasticsearch.client - Elasticsearch data client which uses the credentials of the incoming request - uiSettings.client - uiSettings client which uses the credentials of the incoming request
Signature:
export interface RequestHandlerContext
Property | Type | Description |
---|---|---|
core | { savedObjects: { client: SavedObjectsClientContract; typeRegistry: ISavedObjectTypeRegistry; getClient: (options?: SavedObjectsClientProviderOptions) => SavedObjectsClientContract; getExporter: (client: SavedObjectsClientContract) => ISavedObjectsExporter; getImporter: (client: SavedObjectsClientContract) => ISavedObjectsImporter; }; elasticsearch: { client: IScopedClusterClient; }; uiSettings: { client: IUiSettingsClient; }; deprecations: { client: DeprecationsClient; }; } |