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

Use Plug.Builder.send_resp/3 in a code example in Getting Started #1293

Merged
merged 1 commit into from Jun 22, 2019

Conversation

irisTa56
Copy link
Contributor

Thank you for providing a great Getting Started documentation!

I found that a code example in "As temporary storage" section of "Module attributes" chapter calls send(conn, 200, "ok"). But, plug does not have send/3; send_resp/3 should be used for this purpose.

https://hexdocs.pm/plug/1.8.2/search.html?q=send

@josevalim josevalim merged commit d80640c into elixir-lang:master Jun 22, 2019
@josevalim
Copy link
Member

❤️ 💚 💙 💛 💜

@irisTa56 irisTa56 deleted the use-send_resp branch June 22, 2019 06:57
vladdu pushed a commit to vladdu/elixir-lang.github.com that referenced this pull request Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants