Skip to content

Adopt request interceptors to Context handler pattern #43335

@mshustov

Description

@mshustov

Request Interceptors don't utilize Context handler pattern. We should adopt it for 2 reasons: it's becoming a recommended way to consume core API and for consistency with route handlers.
In theory, there could be some cases when plugins want to provide some API for interceptors or route handlers only.
For now, I'd suggest using RequestContextHandler for all the use cases, that will require RequestHandlerContextProvider refactoring.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature:New PlatformTeam:CorePlatform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//chorestaleUsed to mark issues that were closed for being stale

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions