Skip to content

Instantly share code, notes, and snippets.

@plamb
Created January 7, 2016 03:00
Show Gist options
  • Save plamb/c7c011bf487b1125d4e8 to your computer and use it in GitHub Desktop.
Save plamb/c7c011bf487b1125d4e8 to your computer and use it in GitHub Desktop.
IO.inspect from LiveReloader.call
[info] Running PathTest.Endpoint with Cowboy using http on port 4000
06 Jan 20:57:26 - info: compiled 5 files into 2 files, copied 3 in 934ms
%Plug.Conn{adapter: {Plug.Adapters.Cowboy.Conn, :...}, assigns: %{},
before_send: [], body_params: %Plug.Conn.Unfetched{aspect: :body_params},
cookies: %Plug.Conn.Unfetched{aspect: :cookies}, halted: false,
host: "localhost", method: "GET", owner: #PID<0.443.0>,
params: %Plug.Conn.Unfetched{aspect: :params}, path_info: ["phoenix"],
peer: {{127, 0, 0, 1}, 56094}, port: 4000,
private: %{phoenix_endpoint: PathTest.Endpoint},
query_params: %Plug.Conn.Unfetched{aspect: :query_params}, query_string: "",
remote_ip: {127, 0, 0, 1}, req_cookies: %Plug.Conn.Unfetched{aspect: :cookies},
req_headers: [{"host", "localhost:4000"}, {"connection", "keep-alive"},
{"pragma", "no-cache"}, {"cache-control", "no-cache"},
{"accept",
"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"},
{"upgrade-insecure-requests", "1"},
{"user-agent",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36"},
{"accept-encoding", "gzip, deflate, sdch"},
{"accept-language", "en-US,en;q=0.8"},
{"cookie",
"_oillaw_session=NDJ5aS9WK0hsaEhnR0gxUENhbGQwNHBvYkl6aTN4MUhuMTlzVU54OHNpWUZEcmRCZko1NWJlMjM0ZTc4Qi95aUVyWVgvbmtCQjRXdjhmSXQzRXlPT2hxSXQ3MVlZbldXdWQxbVkyZ0tzZERsM2xSYnVScWxTblZKdjJlVWRxRU5UWVpmaW5YMXBxZG9TQWRwSUZYNHRXRi8xVzc0M2VWNEw2bmdZMFRTL2d1OWJDbDU0anR0TjJNNTR1V21SWlNVZGxjdUsyZ3Z5clNlNVZnUGZoYitYRUQxdW1VT2pFNStHYWd1KzEwN08xVWYyNU9sUGk1UzBOdjZxYXFsVXpSMy9BMkJjQjVRYUhxZ25PREtNQTZIb3NxRTlvVlBhK3V6akFDYTlkRUN6c0U9LS1MU3k0RnVUeXhiWnhLOWVLNkFFcitnPT0%3D--7e50a591f44ae967778d6ca8ce91d0e1d9e7931b; __profilin=p%3Dt; _olr_device_id=7cef5b336be8f9a4bb1327d384344b20e3b24819-id=99ad4ed6-03c7-4828-803d-5d7ba1503231; _brochure_site_key=g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYZDJiS0pkV0JhV244YldhWW5rYVR0dz09--xYGxMFNY8Sih6SO4kRiHpyX1d1M=; _search_api_key=g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYK3pUeVpXM1l4dDI0U2ZCeU4rdTFadz09--j4emAv9BpYHrhpvafQXOec+MNsw="}],
request_path: "/phoenix", resp_body: nil, resp_cookies: %{},
resp_headers: [{"cache-control", "max-age=0, private, must-revalidate"}],
scheme: :http, script_name: ["phoenix"],
secret_key_base: "OnlRNvZF5r6KUw1QBSRrAex0GrOdyFdCq78JH8f2FLQH7ocRDMqQXrlAYohxIlnY",
state: :unset, status: nil}
[info] GET /phoenix
[debug] Processing by PathTest.PageController.index/2
Parameters: %{}
Pipelines: [:browser]
[info] Sent 200 in 11ms
%Plug.Conn{adapter: {Plug.Adapters.Cowboy.Conn, :...}, assigns: %{},
before_send: [], body_params: %Plug.Conn.Unfetched{aspect: :body_params},
cookies: %Plug.Conn.Unfetched{aspect: :cookies}, halted: false,
host: "localhost", method: "GET", owner: #PID<0.446.0>,
params: %Plug.Conn.Unfetched{aspect: :params},
path_info: ["phoenix", "phoenix", "live_reload", "frame"],
peer: {{127, 0, 0, 1}, 56096}, port: 4000,
private: %{phoenix_endpoint: PathTest.Endpoint},
query_params: %Plug.Conn.Unfetched{aspect: :query_params}, query_string: "",
remote_ip: {127, 0, 0, 1}, req_cookies: %Plug.Conn.Unfetched{aspect: :cookies},
req_headers: [{"host", "localhost:4000"}, {"connection", "keep-alive"},
{"pragma", "no-cache"}, {"cache-control", "no-cache"},
{"accept",
"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"},
{"upgrade-insecure-requests", "1"},
{"user-agent",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36"},
{"referer", "http://localhost:4000/phoenix"},
{"accept-encoding", "gzip, deflate, sdch"},
{"accept-language", "en-US,en;q=0.8"},
{"cookie",
"_oillaw_session=NDJ5aS9WK0hsaEhnR0gxUENhbGQwNHBvYkl6aTN4MUhuMTlzVU54OHNpWUZEcmRCZko1NWJlMjM0ZTc4Qi95aUVyWVgvbmtCQjRXdjhmSXQzRXlPT2hxSXQ3MVlZbldXdWQxbVkyZ0tzZERsM2xSYnVScWxTblZKdjJlVWRxRU5UWVpmaW5YMXBxZG9TQWRwSUZYNHRXRi8xVzc0M2VWNEw2bmdZMFRTL2d1OWJDbDU0anR0TjJNNTR1V21SWlNVZGxjdUsyZ3Z5clNlNVZnUGZoYitYRUQxdW1VT2pFNStHYWd1KzEwN08xVWYyNU9sUGk1UzBOdjZxYXFsVXpSMy9BMkJjQjVRYUhxZ25PREtNQTZIb3NxRTlvVlBhK3V6akFDYTlkRUN6c0U9LS1MU3k0RnVUeXhiWnhLOWVLNkFFcitnPT0%3D--7e50a591f44ae967778d6ca8ce91d0e1d9e7931b; __profilin=p%3Dt; _olr_device_id=7cef5b336be8f9a4bb1327d384344b20e3b24819-id=99ad4ed6-03c7-4828-803d-5d7ba1503231; _brochure_site_key=g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYZDJiS0pkV0JhV244YldhWW5rYVR0dz09--xYGxMFNY8Sih6SO4kRiHpyX1d1M=; _search_api_key=g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYK3pUeVpXM1l4dDI0U2ZCeU4rdTFadz09--j4emAv9BpYHrhpvafQXOec+MNsw="}],
request_path: "/phoenix/phoenix/live_reload/frame", resp_body: nil,
resp_cookies: %{},
resp_headers: [{"cache-control", "max-age=0, private, must-revalidate"}],
scheme: :http, script_name: ["phoenix"],
secret_key_base: "OnlRNvZF5r6KUw1QBSRrAex0GrOdyFdCq78JH8f2FLQH7ocRDMqQXrlAYohxIlnY",
state: :unset, status: nil}
%Plug.Conn{adapter: {Plug.Adapters.Cowboy.Conn, :...}, assigns: %{},
before_send: [], body_params: %Plug.Conn.Unfetched{aspect: :body_params},
cookies: %Plug.Conn.Unfetched{aspect: :cookies}, halted: false,
host: "localhost", method: "GET", owner: #PID<0.443.0>,
params: %Plug.Conn.Unfetched{aspect: :params},
path_info: ["images", "phoenix.png"], peer: {{127, 0, 0, 1}, 56094},
port: 4000, private: %{phoenix_endpoint: PathTest.Endpoint},
query_params: %Plug.Conn.Unfetched{aspect: :query_params}, query_string: "",
remote_ip: {127, 0, 0, 1}, req_cookies: %Plug.Conn.Unfetched{aspect: :cookies},
req_headers: [{"host", "localhost:4000"}, {"connection", "keep-alive"},
{"pragma", "no-cache"}, {"cache-control", "no-cache"},
{"accept", "image/webp,image/*,*/*;q=0.8"},
{"user-agent",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36"},
{"referer", "http://localhost:4000/phoenix/css/app.css?vsn=7414E43"},
{"accept-encoding", "gzip, deflate, sdch"},
{"accept-language", "en-US,en;q=0.8"},
{"cookie",
"_oillaw_session=NDJ5aS9WK0hsaEhnR0gxUENhbGQwNHBvYkl6aTN4MUhuMTlzVU54OHNpWUZEcmRCZko1NWJlMjM0ZTc4Qi95aUVyWVgvbmtCQjRXdjhmSXQzRXlPT2hxSXQ3MVlZbldXdWQxbVkyZ0tzZERsM2xSYnVScWxTblZKdjJlVWRxRU5UWVpmaW5YMXBxZG9TQWRwSUZYNHRXRi8xVzc0M2VWNEw2bmdZMFRTL2d1OWJDbDU0anR0TjJNNTR1V21SWlNVZGxjdUsyZ3Z5clNlNVZnUGZoYitYRUQxdW1VT2pFNStHYWd1KzEwN08xVWYyNU9sUGk1UzBOdjZxYXFsVXpSMy9BMkJjQjVRYUhxZ25PREtNQTZIb3NxRTlvVlBhK3V6akFDYTlkRUN6c0U9LS1MU3k0RnVUeXhiWnhLOWVLNkFFcitnPT0%3D--7e50a591f44ae967778d6ca8ce91d0e1d9e7931b; __profilin=p%3Dt; _olr_device_id=7cef5b336be8f9a4bb1327d384344b20e3b24819-id=99ad4ed6-03c7-4828-803d-5d7ba1503231; _brochure_site_key=g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYZDJiS0pkV0JhV244YldhWW5rYVR0dz09--xYGxMFNY8Sih6SO4kRiHpyX1d1M=; _search_api_key=g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYK3pUeVpXM1l4dDI0U2ZCeU4rdTFadz09--j4emAv9BpYHrhpvafQXOec+MNsw="}],
request_path: "/images/phoenix.png", resp_body: nil, resp_cookies: %{},
resp_headers: [{"cache-control", "max-age=0, private, must-revalidate"}],
scheme: :http, script_name: ["phoenix"],
secret_key_base: "OnlRNvZF5r6KUw1QBSRrAex0GrOdyFdCq78JH8f2FLQH7ocRDMqQXrlAYohxIlnY",
state: :unset, status: nil}
[info] GET /phoenix/phoenix/live_reload/frame
[info] GET /images/phoenix.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment