Skip to content

Add an integration response-header hook #782

Description

@jwrosewell

Update, 7 October 2026. The hook is not in the module series (#1043 to #1094). An earlier version of the documentation set (#1047) added IntegrationResponseMutator, and it was taken out because no integration used it and the series' rule is against surface nothing uses. The hook returns with the first integration that needs one, and its design, 2026-07-30-integration-response-header-hook-design.md in #1084, is the starting bar for that work.

Description

Integrations can rewrite the HTML body today but cannot set headers on the outbound response. Add an IntegrationResponseMutator hook applied to the platform-neutral http::Response at the response convergence point, so an integration can add response headers, for example to request additional client evidence on a later request. This is a host-neutral extension point alongside the existing body-only HTML processing.

Done when

  • An IntegrationResponseMutator trait and registry wiring (response_mutators, apply_response_headers).
  • Each adapter applies registered response-header mutations on the outbound response.
  • Covered by tests.

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions