Skip to content

[HttpClient] AsyncResponse/AsyncDecoratorTrait - How to use it, how to use it with dependency injection and missing documentation? #39284

@AndreasA

Description

@AndreasA

I would like to know how to go about using the AsyncResponse for HttpClient. I could not find any real documentation but apparently it is Symfony's middleware implementation?
Also how would this work with dependency injection? I guess it can be stacked to allow multiple middleware AsyncResponse in between?

Also: How would one go about to add e.g. an authentication middleware that has to execute a request prior to the main request like e.g. OAuth2 ? And upon unauthorized retrieves a new token too? I think it should be possible using this but to be honest I am not completely sure how to be use it.
In that regard: Do you plan to add an OAuth2 client using this too?

And I know this is quite a new feature but it looks interesting and I would like to know how to use it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions