Skip to content

docs: add docs for header case presevation#10654

Merged
jasonsaayman merged 3 commits intov1.xfrom
docs/add-docs-for-header-case-presevation
Apr 5, 2026
Merged

docs: add docs for header case presevation#10654
jasonsaayman merged 3 commits intov1.xfrom
docs/add-docs-for-header-case-presevation

Conversation

@jasonsaayman
Copy link
Copy Markdown
Member

@jasonsaayman jasonsaayman commented Apr 5, 2026


Summary by cubic

Adds documentation showing how to preserve specific HTTP header casing in axios using case presets (seeding with undefined) and AxiosHeaders.concat. This helps when integrating with servers that require exact header case.

Description

  • Summary of changes
    • README: new “Preserving a specific header case” section with examples.
    • Advanced docs: updates to header-methods and headers with guidance and links.
  • Reasoning
    • While headers are case-insensitive, some servers behave otherwise; AxiosHeaders keeps the first-seen case, so we document a reliable pattern to control it.
  • Additional context
    • Shows presets via api.defaults.headers.common and composition with AxiosHeaders.concat.

Testing

  • Docs-only changes. No tests added or needed.

Written for commit 2ee674d. Summary will update on new commits.

@jasonsaayman jasonsaayman self-assigned this Apr 5, 2026
@jasonsaayman jasonsaayman added priority::low A low priority issue commit::docs The PR is related to docs labels Apr 5, 2026
@jasonsaayman jasonsaayman merged commit e52994f into v1.x Apr 5, 2026
32 of 33 checks passed
@jasonsaayman jasonsaayman deleted the docs/add-docs-for-header-case-presevation branch April 5, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commit::docs The PR is related to docs priority::low A low priority issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant