Skip to content

feat: support text/plain request bodies - #350

Merged
mnahkies merged 4 commits into
mainfrom
mn/feat/support-text-plain
Jul 22, 2025
Merged

mnahkies merged 4 commits into
mainfrom
mn/feat/support-text-plain

Conversation

@mnahkies

Copy link
Copy Markdown
Owner
  • adds support for sending text/plain request bodies to the clients
  • fixes express missing a body parser for text/plain
  • lays foundation for extending to multipart/form-data, etc soon

BREAKING CHANGE: typescript-express ServerConfig['body'] shape changed to accommodate configuring multiple body parsers

body?: "disabled" | OptionsJson | undefined
body?:
| "disabled"
| Partial<{json: OptionsJson; text: OptionsText}>

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the breaking change: body: OptionsJson -> body: Partial<{json: OptionsJson}>

@mnahkies
mnahkies marked this pull request as ready for review July 22, 2025 14:09
@mnahkies
mnahkies enabled auto-merge (squash) July 22, 2025 14:09
@mnahkies
mnahkies merged commit eba568f into main Jul 22, 2025
@mnahkies
mnahkies deleted the mn/feat/support-text-plain branch July 22, 2025 14:11
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