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

Maintains headers on redirect, error, and halt. Added jsonHalt #594

Merged
merged 2 commits into from
May 30, 2024

Conversation

n0nag0n
Copy link
Collaborator

@n0nag0n n0nag0n commented May 23, 2024

Instead of clearing out the headers that have been set in the response, this will only clear the body instead, which is more desirable.

Additionally, this adds a new mappable method jsonHalt() which will output your JSON and immediately stop the request.

@n0nag0n n0nag0n merged commit c8a1c88 into master May 30, 2024
@n0nag0n n0nag0n deleted the maintain-headers branch May 30, 2024 13:40
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