400 ArgumentError ->
401 raise MalformedURIError, "malformed URI path: #{inspect conn.request_path}"
402 end
403
404 case __match_route__(method, decoded, host) do
405 :error -> raise NoRouteError, conn: conn, router: __MODULE__
406 match -> Phoenix.Router.__call__(conn, match)
407 end
408 end
409
410 defoverridable [init: 1, call: 2]
1defmodule EliteWeb.Endpoint do
2 use Phoenix.Endpoint, otp_app: :elite
3
4 # The session will be stored in the cookie and signed,
5 # this means its contents can be read but not tampered with.
6 # Set :encryption_salt if you would also like to encrypt it.
131 case conn do
132 %Plug.Conn{path_info: ["__plug__", "debugger", "action"], method: "POST"} ->
133 Plug.Debugger.run_action(conn)
134
135 %Plug.Conn{} ->
136 super(conn, opts)
137 end
138 rescue
139 e in Plug.Conn.WrapperError ->
140 %{conn: conn, kind: kind, reason: reason, stack: stack} = e
141 Plug.Debugger.__catch__(conn, kind, reason, stack, @plug_debugger)
1defmodule EliteWeb.Endpoint do
2 use Phoenix.Endpoint, otp_app: :elite
3
4 # The session will be stored in the cookie and signed,
5 # this means its contents can be read but not tampered with.
6 # Set :encryption_salt if you would also like to encrypt it.
49 end
50
51 {:plug, conn, handler, opts} ->
52 %{adapter: {@connection, req}} =
53 conn
54 |> handler.call(opts)
55 |> maybe_send(handler)
56
57 {:ok, req, {handler, opts}}
58 end
59 catch