Expose Response Headers to Pipeline
mikaelweave opened this issue · 3 comments
Is your feature request related to a problem? Please describe.
For using the Toolkit with Azure AD, we need the ability to modify the response headers. This is necessary for modifying the Azure AD flow and having clients redirect to the newly formed AAD URL with a Http redirect.
Describe the solution you'd like
It would be great if the OperationContext for the pipeline exposes a headers collection. This could be initialized as empty, binding could conditionally update this (by binding config), then output filters could modify the header collection.
Describe alternatives you've considered
Shim on top of the pipeline inside my program. Works but doesn't keep code segmented in the filter.
Why not use the same pattern for response headers as request headers?
@w-matt-long That's the plan 😄
Completed