Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add quality-of-life improvements for bodies #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mpalmer
Copy link

@mpalmer mpalmer commented Jun 7, 2024

On the request side, you can now match the request body against one or more substrings and regular expressions, which makes life easier for those of us who need to deal with request bodies that have non-deterministic elements in them (like nonces).

On the response side. you can now write your JSON response bodies as JSON, which is significantly easier than having to escape eleventy-billion quotes, and match up braces by eye.

To avoid any bloat or unpleasant interactions with existing code, all the new features are gated behind, well, features.

On the request side, you can now match the request body against one or
more substrings and regular expressions, which makes life easier for
those of us who need to deal with request bodies that have
non-deterministic elements in them (like nonces).

On the response side. you can now write your JSON response bodies *as
JSON*, which is significantly easier than having to escape
eleventy-billion quotes, and match up braces by eye.

To avoid any bloat or unpleasant interactions with existing code, all
the new features are gated behind, well, features.
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