Repository navigation
fix: testkit default Host, Pekko's addHeader order, honest response headers, bounded matchers - #93
Merged
Merged
Conversation
…rs, bounded matchers, as Pekko's testkit - ~> adds Host: example.com to a request that names no host (DefaultHostInfo to change it), so host(...) and extractHost work in tests; the URI stays as given, as stir's server hands routes the URI as received. - addHeader / addHeaders add after a header of the same name instead of replacing it; the entity headers (Content-Type, Content-Length, Transfer-Encoding), which Pekko keeps in the entity, still replace. - response no longer gains a Transfer-Encoding: chunked the route never sent. - evaluateTo, haveFailedWith and the marshalling helpers fail after marshallingTimeout (1 s, overridable) instead of hanging the suite. The old implicit injectIntoRoute stays as a plain method for binary compatibility. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBTSjzt7V6GBL6i5bqnYea
…unparseable Host; the default host is a Host header, not Pekko's URI rewrite Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBTSjzt7V6GBL6i5bqnYea
…ecs2 timeout tests; note the override for an own marshallingTimeout Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBTSjzt7V6GBL6i5bqnYea
luksow
force-pushed
the
websocket-upgrade-checks
branch
from
October 18, 2026 19:28
659ed02 to
db2fb80
Compare
luksow
force-pushed
the
testkit-fidelity
branch
from
October 18, 2026 19:28
537e4b3 to
c262f46
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Testkit fidelity, as Pekko's testkit (T1–T4):
~>addsHost: example.comto a request that names no host (implicitDefaultHostInfoto change it), sohost(...)andextractHostwork in tests. Pekko's testkit uses the same host but rewrites the URI to an absolute one instead; stir keeps the URI as given because stir's server hands routes the URI as received, so tests stay faithful to production (documented as a difference).addHeaderprepends andaddHeadersappends, as Pekko, instead of replacing; a lateraddHeaderis still what a typed lookup finds. The entity headers (Content-Type,Content-Length,Transfer-Encoding), which Pekko keeps in the entity, still replace, so the common "override the body's content type" pattern keeps working.responseno longer gains aTransfer-Encoding: chunkedthe route never sent.evaluateTo,haveFailedWithand the marshalling helpers fail aftermarshallingTimeout(1 s, as Pekko, overridable) instead of hanging.Host: example.com(our own logging spec needed that update); flagged in migration.md. Binary compatible with 0.7.0 (the old implicitinjectIntoRoutestays as a deprecated plain method).Part of the 0.7.1 stack (audit 2 minor items). Stacked: merge in order #1 → #10; each PR is based on the previous one, so none of them conflicts on
docs/migration.md. Every PR: test written first and seen failing, full local verify (Scala 3 + 2.13 tests, JS/Native compile, docs, MiMa against 0.7.0), independent review with its findings fixed.🤖 Generated with Claude Code
https://claude.ai/code/session_01HBTSjzt7V6GBL6i5bqnYea