Skip to content

Remove unused get_responder() from RpcContext and make http_responder.h private#7827

Merged
achamayou merged 4 commits intomainfrom
copilot/remove-unused-get-responder-call
Apr 16, 2026
Merged

Remove unused get_responder() from RpcContext and make http_responder.h private#7827
achamayou merged 4 commits intomainfrom
copilot/remove-unused-get-responder-call

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 15, 2026

Summary

get_responder() was declared as a pure virtual method in the public ccf::RpcContext API but had no call sites anywhere in the codebase. This PR removes it and, as a consequence, moves http_responder.h from the public include/ccf/ directory into the private src/http/ directory.

Changes

  • include/ccf/rpc_context.h: Remove get_responder() virtual declaration and the #include "ccf/http_responder.h" it required.
  • src/http/http_rpc_context.h: Remove get_responder() override, responder member variable, and responder_ constructor parameter; update include to use the new private path.
  • src/http/http2_session.h: Remove the responder argument from the HttpRpcContext constructor call; update include path.
  • src/http/http_session.h: Update include path.
  • src/enclave/rpc_sessions.h: Update include path.
  • src/http/http_responder.h: New location (moved from include/ccf/http_responder.h).
  • CHANGELOG.md: Document the removal under [7.0.0-rc2].

….h private

Agent-Logs-Url: https://github.com/microsoft/CCF/sessions/0eeefbbf-f333-4441-9314-6a72738a435d

Co-authored-by: achamayou <4016369+achamayou@users.noreply.github.com>
Comment thread src/http/http_rpc_context.h Outdated
Copilot AI requested a review from eddyashton April 16, 2026 07:57
@achamayou achamayou marked this pull request as ready for review April 16, 2026 09:59
@achamayou achamayou requested a review from a team as a code owner April 16, 2026 09:59
Copilot AI review requested due to automatic review settings April 16, 2026 09:59
@achamayou achamayou added this to the 7.0.0-rc2 milestone Apr 16, 2026
@achamayou achamayou merged commit 7f4c9b3 into main Apr 16, 2026
19 of 20 checks passed
@achamayou achamayou deleted the copilot/remove-unused-get-responder-call branch April 16, 2026 09:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes the unused get_responder() method from the public ccf::RpcContext API and relocates http_responder.h from the public headers into a private src/http/ header, updating internal include paths and call sites accordingly.

Changes:

  • Removed RpcContext::get_responder() and its public dependency on ccf/http_responder.h.
  • Updated HTTP session code to stop passing/storing a responder inside HttpRpcContext.
  • Moved http_responder.h to src/http/ and updated includes; documented the API change in the changelog.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
include/ccf/rpc_context.h Removes get_responder() from the public API and drops the public include dependency.
src/http/http_rpc_context.h Removes responder member/ctor parameter and the override.
src/http/http2_session.h Updates include path and HttpRpcContext construction signature.
src/http/http_session.h Updates include path to the new private responder header.
src/enclave/rpc_sessions.h Updates include path for responder header usage in enclave code.
src/http/http_responder.h Adds the responder interface in its new private location.
CHANGELOG.md Notes the API removal and header privatization under 7.0.0-rc2.

#include "enclave/session.h"
#include "forwarder_types.h"
#include "http/http2_session.h"
#include "http/http_responder.h"
Copy link

Copilot AI Apr 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file now directly includes http/http_responder.h, but doesn't reference ccf::http::HTTPResponder anywhere (and both http_session.h and http2_session.h already include it). Consider dropping this include to avoid redundant dependencies.

Suggested change
#include "http/http_responder.h"

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants