Skip to content

refactor: simplification - #292

Merged
rustatian merged 1 commit into
masterfrom
refactor/simplification
Oct 8, 2026
Merged

rustatian merged 1 commit into
masterfrom
refactor/simplification

Conversation

@rustatian

Copy link
Copy Markdown
Member

Reason for This PR

Reduce duplicate HTTP server configuration.

Description of Changes

  • Initialize the HTTP server once and apply H2C options when enabled.

License Acceptance

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

PR Checklist

  • All commits in this PR are signed (git commit -s).
  • The reason for this PR is clearly provided (issue no. or explanation).
  • The description of changes is clear and encompassing.
  • Any required documentation changes (code and docs) are included in this PR.
  • Any user-facing changes are mentioned in CHANGELOG.md.
  • All added/changed functionality is tested.

Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
Copilot AI balanced review requested due to automatic review settings October 4, 2026 17:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The refactor preserves existing behavior and remains covered by HTTP server tests.

Review effort: Balanced
Findings: None

What changed in this PR

Simplifies HTTP server construction by removing duplicated configuration.

Changes:

  • Initializes the server once.
  • Applies H2C-specific protocol settings conditionally.
File Description
servers/​http11/​http.go Consolidates server initialization while preserving H2C behavior.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@codecov

codecov Bot commented Oct 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.48%. Comparing base (4203872) to head (36d2188).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #292      +/-   ##
==========================================
- Coverage   88.60%   88.48%   -0.12%     
==========================================
  Files          29       29              
  Lines        1360     1346      -14     
==========================================
- Hits         1205     1191      -14     
  Misses        155      155              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rustatian rustatian self-assigned this Oct 8, 2026
@rustatian
rustatian merged commit e4670d9 into master Oct 8, 2026
9 checks passed
@rustatian
rustatian deleted the refactor/simplification branch October 8, 2026 11:52
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.

2 participants