Skip to content

Instantly share code, notes, and snippets.

@siddhant3030
Last active October 31, 2019 06:13
Show Gist options
  • Save siddhant3030/cfdc43cb2199ffbc7661b42c07f8ae5a to your computer and use it in GitHub Desktop.
Save siddhant3030/cfdc43cb2199ffbc7661b42c07f8ae5a to your computer and use it in GitHub Desktop.
%Plug.Conn{
adapter: {Plug.Cowboy.Conn, :...},
assigns: %{},
before_send: [#Function<0.66442134/1 in Plug.Telemetry.call/2>],
body_params: %{"bank" => %{"name" => "sidass12asaassskfkwqojwq"}},
cookies: %Plug.Conn.Unfetched{aspect: :cookies},
halted: false,
host: "localhost",
method: "POST",
owner: #PID<0.432.0>,
params: %{"bank" => %{"name" => "sidass12asaassskfkwqojwq"}},
path_info: ["api", "banks"],
path_params: %{},
port: 4000,
private: %{
BankingWeb.Router => {[], %{}},
:phoenix_action => :create,
:phoenix_controller => BankingWeb.BankController,
:phoenix_endpoint => BankingWeb.Endpoint,
:phoenix_format => "json",
:phoenix_layout => {BankingWeb.LayoutView, :app},
:phoenix_router => BankingWeb.Router,
:phoenix_view => BankingWeb.BankView,
:plug_session_fetch => #Function<1.35161479/1 in Plug.Session.fetch_session/1>
},
query_params: %{},
query_string: "",
remote_ip: {127, 0, 0, 1},
req_cookies: %Plug.Conn.Unfetched{aspect: :cookies},
req_headers: [
{"accept", "*/*"},
{"accept-encoding", "gzip, deflate"},
{"cache-control", "no-cache"},
{"connection", "keep-alive"},
{"content-length", "54"},
{"content-type", "application/json"},
{"host", "localhost:4000"},
{"postman-token", "e29e2d87-daa9-4df0-95c1-64ec0a7b8399"},
{"user-agent", "PostmanRuntime/7.17.1"}
],
request_path: "/api/banks",
resp_body: nil,
resp_cookies: %{},
resp_headers: [
{"cache-control", "max-age=0, private, must-revalidate"},
{"x-request-id", "FdKmYhd_OEC0O7wAAAAD"}
],
scheme: :http,
script_name: [],
secret_key_base: :...,
state: :unset,
status: nil
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment