Skip to content

Support uncommon HTTP methods#6449

Draft
coyaSONG wants to merge 1 commit into
Effect-TS:v3from
coyaSONG:agent/add-uncommon-http-methods
Draft

Support uncommon HTTP methods#6449
coyaSONG wants to merge 1 commit into
Effect-TS:v3from
coyaSONG:agent/add-uncommon-http-methods

Conversation

@coyaSONG

Copy link
Copy Markdown
Contributor

Type

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

Add the uncommon HTTP methods supported by Fastify, including WebDAV methods such as PROPFIND, PROPPATCH, and MKCOL, to HttpMethod.

This also:

  • uses the central HttpMethod type in HttpLayerRouter instead of repeating a narrower method union
  • keeps AiError.HttpRequestDetails in sync with HttpMethod.all
  • treats TRACE as a no-body method
  • adds regression coverage and patch changesets for @effect/platform and @effect/ai

The change allows DAV and other uncommon-method endpoints to be represented without casts while keeping dependent schemas aligned with the platform method set.

Validation

  • Added the HttpMethod regression test first and confirmed it failed before the implementation.
  • corepack pnpm test packages/platform/test/HttpMethod.test.ts packages/platform/test/HttpLayerRouter.test.ts packages/ai/ai/test/AiError.test.ts (6 tests passed)
  • corepack pnpm lint-fix
  • corepack pnpm check
  • corepack pnpm build
  • corepack pnpm docgen
  • corepack pnpm changeset status

Related

AI disclosure

This pull request was prepared with Codex assistance. It has not yet received independent human review.

@github-project-automation github-project-automation Bot moved this to Discussion Ongoing in PR Backlog Jul 17, 2026
@changeset-bot

changeset-bot Bot commented Jul 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: dab2530

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@effect/platform Patch
@effect/ai Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@IMax153 IMax153 added the 3.0 Used for issues, pull requests, etc. that are relevant for the `v3` branch targeting Effect v3. label Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.0 Used for issues, pull requests, etc. that are relevant for the `v3` branch targeting Effect v3.

Projects

Status: Discussion Ongoing

Development

Successfully merging this pull request may close these issues.

2 participants