Skip to content

Allow send_resp to be used without a body #1275

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

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

Conversation

giriss
Copy link
Contributor

@giriss giriss commented Jul 20, 2025

This will be useful for sending 204 No Content http status.
Instead of send_resp(conn, :no_content, "") we can now do send_resp(conn, :no_content).

What do you guys think of it?

I find it more idiomatic to do this:

send_resp(conn, :no_content)

Instead of:

send_resp(conn, :no_content, "")

This will be useful for sending 204 No Content http status.

Instead of `send_resp(conn, :no_content, "")` we can now do
`send_resp(conn, :no_content)`.
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