Skip to content

docs: add QUERY to the documented retry default methods - #6062

Merged
metcoder95 merged 1 commit into
nodejs:mainfrom
qodelicious:docs-retry-default-methods
Oct 20, 2026
Merged

metcoder95 merged 1 commit into
nodejs:mainfrom
qodelicious:docs-retry-default-methods

Conversation

@qodelicious

Copy link
Copy Markdown
Contributor

This relates to...

Follow up to the QUERY method support (#5459).

Rationale

RetryHandler retries QUERY requests by default (lib/handler/retry-handler.js), but the docs for RetryHandler and RetryAgent and the JSDoc in types/retry-handler.d.ts still list the old default without it. The errorCodes default in the types was also missing UND_ERR_SOCKET, which the code and the markdown docs already have.

Changes

  • Added 'QUERY' to the methods default in RetryHandler.md, RetryAgent.md and types/retry-handler.d.ts
  • Added 'UND_ERR_SOCKET' to the errorCodes default in types/retry-handler.d.ts
  • Added 'QUERY' to Dispatcher.HttpMethod so it shows up in autocomplete like the other methods

Features

N/A

Bug Fixes

N/A (docs and types only)

Breaking Changes and Deprecations

N/A

Status

RetryHandler retries QUERY by default since QUERY support landed, but
the RetryHandler and RetryAgent docs and the types still listed the old
default. The errorCodes default in the types was also missing
UND_ERR_SOCKET. Also add QUERY to Dispatcher.HttpMethod so it shows up
in autocomplete.
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.57%. Comparing base (f4e4e45) to head (09d3f63).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6062   +/-   ##
=======================================
  Coverage   91.57%   91.57%           
=======================================
  Files         113      113           
  Lines       43938    43938           
=======================================
+ Hits        40235    40237    +2     
+ Misses       3703     3701    -2     

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@metcoder95
metcoder95 merged commit 1d09db9 into nodejs:main Oct 20, 2026
38 checks passed
@github-actions github-actions Bot mentioned this pull request Nov 5, 2026
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.

3 participants