Skip to content

Add QUERY HTTP method support#27

Merged
ejsmith merged 4 commits into
mainfrom
agent/add-query-http-method
Jul 16, 2026
Merged

Add QUERY HTTP method support#27
ejsmith merged 4 commits into
mainfrom
agent/add-query-http-method

Conversation

@ejsmith

@ejsmith ejsmith commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add fluent and JSON helpers for the HTTP QUERY method across the class, functional, and default-export APIs
  • expose cache-capable QUERY request options and include QUERY in safe, idempotent retries
  • add QUERY support to MockRegistry, request history, documentation, and tests

Why

RFC 10008 defines QUERY as a safe, idempotent, cacheable method with request content. FetchClient should support it with the same typed response, middleware, explicit caching, retry, and testing capabilities as its existing methods.

The retry middleware now preserves body-bearing requests across attempts so a QUERY request can be retried without reusing a consumed body stream.

Validation

  • deno task check
  • deno task lint
  • deno task format-check
  • deno task test (196 passed)
  • deno task build --set-version 0.0.0 --allow-dirty

@ejsmith
ejsmith marked this pull request as ready for review July 16, 2026 04:27
@ejsmith
ejsmith merged commit 6b38f1d into main Jul 16, 2026
4 checks passed
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