http: Make class fields private or convert to struct #35829

pull hodlinator wants to merge 9 commits into bitcoin:master from hodlinator:pr/35182_suggestions changing 7 files +205 −204
  1. hodlinator commented at 11:49 AM on July 28, 2026: contributor

    Follow-up to #35182.

  2. http: Make HTTPResponse a struct since all fields are public eeb972ced5
  3. http: Make HTTPRequest fields private
    Makes sense since they are only set by methods in the class itself, and already had accessors for most fields.
    d354c09b14
  4. http: Simplify boolean logic in HTTPServer::DisconnectClients() f7662a3b0c
  5. http: Extract HTTPRemoteClient::MaybeDisconnect() from HTTPServer::DisconnectClients() adfd62c088
  6. http: Extract Send() and Receive() from HTTPServer into HTTPRemoteClient 66aa0f707e
  7. http: Replace HTTPServer::MaybeDispatchRequestsFromClient() with HTTPRemoteClient::ReadRequests() 9e31b88082
  8. http: Make HTTPRemoteClient fields private 09f1d07f45
  9. http: Rename http_bitcoin -> bitcoin_http
    It's Bitcoin Core's implementation of the HTTP protocol, not HTTP protocol's implementation of bitcoin 402 payment required codes or anything like that.
    3ccd2930f8
  10. http: Drop bitcoin_http namespace
    It was only used during #35182 to distinguish from libevent counterparts.
    c2e4d5f58a
  11. DrahtBot added the label RPC/REST/ZMQ on Jul 28, 2026
  12. DrahtBot commented at 11:49 AM on July 28, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35829.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline and AI policy for information on the review process. A summary of reviews will appear here.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #35828 (util: Make LineReader consistently use string_view by hodlinator)
    • #35780 (http: linger-close after parse errors so clients can read the reply by b-l-u-e)
    • #35735 (Add state to HTTPRequest by pinheadmz)
    • #35592 (http: check rpcallowip immediately after accepting connection by pinheadmz)
    • #26022 (Add util::ResultPtr class by ryanofsky)
    • #25722 (refactor: Use util::Result class for wallet loading by ryanofsky)
    • #25665 (refactor: Add util::Result failure types and ability to merge result values by ryanofsky)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  13. pinheadmz commented at 7:51 PM on July 28, 2026: member

    Light code review, changes all look fine. It's all code style cleanups (thanks 😬) though without any obvious gain. Will review more thoroughly after more concept a-c-ks

  14. DrahtBot commented at 11:10 PM on July 29, 2026: contributor

    <!--cf906140f33d8803c4a75a2196329ecb-->

    🐙 This pull request conflicts with the target branch and needs rebase.

  15. DrahtBot added the label Needs rebase on Jul 29, 2026

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-07-30 06:51 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me