Skip to content

add support for middleware pipeline for request execution #120

@baywet

Description

@baywet

People need to be able to inject behavior on responses before things are returned to the caller to handle things like retry, redirect, etc...
Review the design guidance

We probably need to model:

  • ResponseInfo (abstract reflection of http response)
  • RequestMiddleware (interface for middlewares excuting before the request is sent)
  • ResponseMiddleware (interface for middlewares executing after the response is received)
  • A property bag to tag the request with options for the middleware
  • A way to register (and order?) middlewares
  • A way to set default options for requests
    AB#9081

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestgeneratorIssues or improvements relater to generation capabilities.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions