Skip to content

fix: align echo and digest examples with upstream raw echo and digest semantics - #25

Merged
wrossmorrow merged 1 commit into
mainfrom
fix/examples-echo-digest
Oct 28, 2026
Merged

wrossmorrow merged 1 commit into
mainfrom
fix/examples-echo-digest

Conversation

@wrossmorrow-pi-bot

Copy link
Copy Markdown
Contributor

What

Fixes the remaining minor behavior misalignments in the echo and digest example processors, bringing them in line with the Go/Rust SDK semantics.

Changes

  • Digest (DigestRequestProcessor):
    • Removed the extra x-extproc-response-digest header emission; only x-extproc-request-digest is set now (Go/Rust parity).
    • Fixed the digest input string: base is now method:path (no trailing colon), with :<body> appended at the body phase (Go/Rust parity).
  • Echo (EchoRequestProcessor):
    • Response is now a raw echo (original body via immediate cancel) instead of a synthetic JSON body.
    • Path matching now uses the /echo/... regex (Go/Rust parity) instead of startsWith("/echo").
  • README.md: updated the echo sample response and examples source path accordingly.

Verification

./gradlew clean build

-> BUILD SUCCESSFUL (spotless, tests, check).

Notes

  • The missing router example/processor was verified to already exist and be wired; no change was needed there.

@wrossmorrow
wrossmorrow merged commit 3a456f7 into main Oct 28, 2026
4 checks passed
@wrossmorrow
wrossmorrow deleted the fix/examples-echo-digest branch October 28, 2026 19:33
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.

1 participant