On Mar 14, 2016, at 3:41 PM, Alan McKean <alanw...@gmail.com> wrote:
I am writing a plug that does some handshaking with the client before any actual controller-bound requests and need to immediately return a response and avoid any further plug processing, including any invocation of a downstream controller. It's the first plug in the sequence. I have tried using send_resp(conn) followed by halt(conn) but it seems that downstream plugs are still called. Further, I am getting warnings on every request that ' ** (Plug.Conn.NotSentError) a response was neither set nor sent from the connection'. Any idea what is going on and how I can return a response immediately from my plug?
--
You received this message because you are subscribed to the Google Groups "phoenix-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phoenix-talk...@googlegroups.com.
To post to this group, send email to phoeni...@googlegroups.com.
Visit this group at https://groups.google.com/group/phoenix-talk.
To view this discussion on the web visit https://groups.google.com/d/msgid/phoenix-talk/dbec79da-2ac3-4aba-a2a4-a941df41b122%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "phoenix-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phoenix-talk...@googlegroups.com.
To post to this group, send email to phoeni...@googlegroups.com.
Visit this group at https://groups.google.com/group/phoenix-talk.
To view this discussion on the web visit https://groups.google.com/d/msgid/phoenix-talk/be9ab0cc-1984-42b2-81cd-f1b17bddb91e%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "phoenix-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phoenix-talk...@googlegroups.com.
To post to this group, send email to phoeni...@googlegroups.com.
Visit this group at https://groups.google.com/group/phoenix-talk.
To view this discussion on the web visit https://groups.google.com/d/msgid/phoenix-talk/322b5944-45f8-4bfd-a0c2-f07876d6da9e%40googlegroups.com.