Skip to content

Instantly share code, notes, and snippets.

@kzaitsev
Created January 15, 2014 23:13
Show Gist options
  • Save kzaitsev/8446663 to your computer and use it in GitHub Desktop.
Save kzaitsev/8446663 to your computer and use it in GitHub Desktop.
excon fog
excon.request {:chunk_size=>1048576, :ciphers=>"HIGH:!SSLv2:!aNULL:!eNULL:!3DES", :connect_timeout=>60, :debug_request=>false, :debug_response=>true, :headers=>{"User-Agent"=>"fog/1.19.0", "X-Auth-Key"=>"SOMEKEY", "X-Auth-User"=>"SOMEUSER", "Host"=>"auth.selcdn.ru:443"}, :idempotent=>false, :instrumentor_name=>"excon", :middlewares=>[Excon::Middleware::ResponseParser, Excon::Middleware::Expects, Excon::Middleware::Idempotent, Excon::Middleware::Instrumentor, Excon::Middleware::Mock], :mock=>false, :nonblock=>true, :omit_default_port=>false, :persistent=>false, :read_timeout=>60, :retry_limit=>4, :ssl_verify_peer=>true, :tcp_nodelay=>false, :uri_parser=>URI, :write_timeout=>60, :host=>"auth.selcdn.ru", :path=>"/v1.0", :port=>443, :query=>nil, :scheme=>"https", :user=>nil, :password=>"REDACTED", :instrumentor=>Excon::StandardInstrumentor, :expects=>[200, 204], :method=>"GET", :retries_remaining=>4, :connection=>#<Excon::Connection:7f976f534450 @data={:chunk_size=>1048576, :ciphers=>"HIGH:!SSLv2:!aNULL:!eNULL:!3DES", :connect_timeout=>60, :debug_request=>false, :debug_response=>true, :headers=>{"User-Agent"=>"fog/1.19.0"}, :idempotent=>false, :instrumentor_name=>"excon", :middlewares=>[Excon::Middleware::ResponseParser, Excon::Middleware::Expects, Excon::Middleware::Idempotent, Excon::Middleware::Instrumentor, Excon::Middleware::Mock], :mock=>false, :nonblock=>true, :omit_default_port=>false, :persistent=>false, :read_timeout=>60, :retry_limit=>4, :ssl_verify_peer=>true, :tcp_nodelay=>false, :uri_parser=>URI, :write_timeout=>60, :host=>"auth.selcdn.ru", :path=>"/v1.0", :port=>443, :query=>nil, :scheme=>"https", :user=>nil, :password=>nil, :instrumentor=>Excon::StandardInstrumentor} @socket_key="https://auth.selcdn.ru:443">, :stack=>#<Excon::Middleware::ResponseParser:0x007f976f6a9ee8 @stack=#<Excon::Middleware::Expects:0x007f976f6a9f10 @stack=#<Excon::Middleware::Idempotent:0x007f976f6aa028 @stack=#<Excon::Middleware::Instrumentor:0x007f976f6aa0c8 @stack=#<Excon::Middleware::Mock:0x007f976f6aa0f0 @stack=#<Excon::Connection:7f976f534450 @data={:chunk_size=>1048576, :ciphers=>"HIGH:!SSLv2:!aNULL:!eNULL:!3DES", :connect_timeout=>60, :debug_request=>false, :debug_response=>true, :headers=>{"User-Agent"=>"fog/1.19.0"}, :idempotent=>false, :instrumentor_name=>"excon", :middlewares=>[Excon::Middleware::ResponseParser, Excon::Middleware::Expects, Excon::Middleware::Idempotent, Excon::Middleware::Instrumentor, Excon::Middleware::Mock], :mock=>false, :nonblock=>true, :omit_default_port=>false, :persistent=>false, :read_timeout=>60, :retry_limit=>4, :ssl_verify_peer=>true, :tcp_nodelay=>false, :uri_parser=>URI, :write_timeout=>60, :host=>"auth.selcdn.ru", :path=>"/v1.0", :port=>443, :query=>nil, :scheme=>"https", :user=>nil, :password=>nil, :instrumentor=>Excon::StandardInstrumentor} @socket_key="https://auth.selcdn.ru:443">>>>>>}
excon.response {:body=>"", :headers=>{"Date"=>"Wed, 15 Jan 2014 23:01:55 GMT", "Connection"=>"close", "Server"=>"Selectel_Storage/1.0", "X-Expire-Auth-Token"=>"67311", "X-Storage-Url"=>"https://83201.selcdn.ru/", "X-Storage-Token"=>"SOMETOKEN", "X-Auth-Token"=>"SOMETOKEN", "Access-Control-Allow-Origin"=>"*", "Access-Control-Expose-Headers"=>"x-expire-auth-token, x-storage-url, x-storage-token, x-auth-token"}, :status=>204, :remote_ip=>"188.93.16.238"}
excon.request {:chunk_size=>1048576, :ciphers=>"HIGH:!SSLv2:!aNULL:!eNULL:!3DES", :connect_timeout=>60, :debug_request=>false, :debug_response=>true, :headers=>{"User-Agent"=>"fog/1.19.0", "Content-Type"=>"application/json", "Accept"=>"application/json", "X-Auth-Token"=>"SOMETOKEN", "Host"=>"83201.selcdn.ru:443"}, :idempotent=>false, :instrumentor_name=>"excon", :middlewares=>[Excon::Middleware::ResponseParser, Excon::Middleware::Expects, Excon::Middleware::Idempotent, Excon::Middleware::Instrumentor, Excon::Middleware::Mock], :mock=>false, :nonblock=>true, :omit_default_port=>false, :persistent=>false, :read_timeout=>60, :retry_limit=>4, :ssl_verify_peer=>true, :tcp_nodelay=>false, :uri_parser=>URI, :write_timeout=>60, :host=>"83201.selcdn.ru", :path=>"/teobit", :port=>443, :query=>{"format"=>"json", :prefix=>"assets"}, :scheme=>"https", :user=>nil, :password=>"REDACTED", :instrumentor=>Excon::StandardInstrumentor, :expects=>200, :method=>"GET", :retries_remaining=>4, :connection=>#<Excon::Connection:7f976abd2f28 @data={:chunk_size=>1048576, :ciphers=>"HIGH:!SSLv2:!aNULL:!eNULL:!3DES", :connect_timeout=>60, :debug_request=>false, :debug_response=>true, :headers=>{"User-Agent"=>"fog/1.19.0"}, :idempotent=>false, :instrumentor_name=>"excon", :middlewares=>[Excon::Middleware::ResponseParser, Excon::Middleware::Expects, Excon::Middleware::Idempotent, Excon::Middleware::Instrumentor, Excon::Middleware::Mock], :mock=>false, :nonblock=>true, :omit_default_port=>false, :persistent=>false, :read_timeout=>60, :retry_limit=>4, :ssl_verify_peer=>true, :tcp_nodelay=>false, :uri_parser=>URI, :write_timeout=>60, :host=>"83201.selcdn.ru", :path=>"", :port=>443, :query=>nil, :scheme=>"https", :user=>nil, :password=>nil, :instrumentor=>Excon::StandardInstrumentor} @socket_key="https://83201.selcdn.ru:443">, :stack=>#<Excon::Middleware::ResponseParser:0x007f976abd9468 @stack=#<Excon::Middleware::Expects:0x007f976abd9490 @stack=#<Excon::Middleware::Idempotent:0x007f976abd94e0 @stack=#<Excon::Middleware::Instrumentor:0x007f976abd9508 @stack=#<Excon::Middleware::Mock:0x007f976abd9a80 @stack=#<Excon::Connection:7f976abd2f28 @data={:chunk_size=>1048576, :ciphers=>"HIGH:!SSLv2:!aNULL:!eNULL:!3DES", :connect_timeout=>60, :debug_request=>false, :debug_response=>true, :headers=>{"User-Agent"=>"fog/1.19.0"}, :idempotent=>false, :instrumentor_name=>"excon", :middlewares=>[Excon::Middleware::ResponseParser, Excon::Middleware::Expects, Excon::Middleware::Idempotent, Excon::Middleware::Instrumentor, Excon::Middleware::Mock], :mock=>false, :nonblock=>true, :omit_default_port=>false, :persistent=>false, :read_timeout=>60, :retry_limit=>4, :ssl_verify_peer=>true, :tcp_nodelay=>false, :uri_parser=>URI, :write_timeout=>60, :host=>"83201.selcdn.ru", :path=>"", :port=>443, :query=>nil, :scheme=>"https", :user=>nil, :password=>nil, :instrumentor=>Excon::StandardInstrumentor} @socket_key="https://83201.selcdn.ru:443">>>>>>}
excon.response {:body=>"[{\"hash\": \"ce57f8c0298ccef30834b4211c2cce05\", \"last_modified\": \"2014-01-15T19:06:25.171580\", \"bytes\": 326251, \"name\": \"assets/portfolio/yakimanka/big-b98fe3cc2755fd1e4a555df5daf29501.png\", \"content_type\": \"image/png\"}, {\"hash\": \"ceda121d33a60bd23c13d76684eb0703\", \"last_modified\": \"2014-01-15T19:06:25.405910\", \"bytes\": 21918, \"name\": \"assets/portfolio/yakimanka/graphics/attendance-cad26723da5b872a5dfd6c0787f0ee65.png\", \"content_type\": \"image/png\"}, {\"hash\": \"02e4b3bf43a5a07267ca23e4304f4b9f\", \"last_modified\": \"2014-01-15T19:06:25.697320\", \"bytes\": 11058, \"name\": \"assets/portfolio/yakimanka/graphics/positions-eca715a3afb5f249ca6b12e1b4c0cec8.png\", \"content_type\": \"image/png\"}, {\"hash\": \"a7ebb9fe8c8e0aa39d006feed559068b\", \"last_modified\": \"2014-01-15T19:06:32.239550\", \"bytes\": 8930, \"name\": \"assets/portfolio/yakimanka/graphics/views-46a515f6e2519978cd682b0c5d11af8c.png\", \"content_type\": \"image/png\"}, {\"hash\": \"8884d1cef5456f2d4ae1fb4e6ddc5015\", \"last_modified\": \"2014-01-15T19:06:32.976100\", \"bytes\": 68612, \"name\": \"assets/portfolio/yakimanka/screenshots/1-5f7e1456930c62dd22142931de92dc66.jpg\", \"content_type\": \"image/jpeg\"}, {\"hash\": \"cb52b5e84dc2683256f9b63f4fe7337a\", \"last_modified\": \"2014-01-15T19:06:36.477930\", \"bytes\": 53568, \"name\": \"assets/portfolio/yakimanka/screenshots/2-ee594212c292eeee0692bc4263b4f879.jpg\", \"content_type\": \"image/jpeg\"}, {\"hash\": \"4c684d4ece9a2077ffceee72a4047079\", \"last_modified\": \"2014-01-15T19:06:36.911700\", \"bytes\": 84641, \"name\": \"assets/portfolio/yakimanka/screenshots/3-d88f0f7bf9cf97003ead90266d93e41c.jpg\", \"content_type\": \"image/jpeg\"}, {\"hash\": \"9c89be7a67cc7ab0788899b9296ebbf4\", \"last_modified\": \"2014-01-15T19:06:37.155080\", \"bytes\": 81951, \"name\": \"assets/portfolio/yakimanka/screenshots/4-8c29446f2d28ca13e314d5b710791d79.jpg\", \"content_type\": \"image/jpeg\"}, {\"hash\": \"187c4fda56c5c21d60e4b12522b0e01e\", \"last_modified\": \"2014-01-15T19:06:37.404620\", \"bytes\": 4256, \"name\": \"assets/preloader-fdfc1208c7f19bcce9e7c1b461fef8e2.gif\", \"content_type\": \"image/gif\"}, {\"hash\": \"5887e89318da8a78ad1a321b93538b4e\", \"last_modified\": \"2014-01-15T19:06:37.612610\", \"bytes\": 342809, \"name\": \"assets/presentation-1ba7f3d5ad41a6766f7e3559e5851e91.js\", \"content_type\": \"text/javascript\"}, {\"hash\": \"4ffd8e8b2d88897994951cc6cf36b47f\", \"last_modified\": \"2014-01-15T19:06:38.276170\", \"bytes\": 107152, \"name\": \"assets/presentation-1ba7f3d5ad41a6766f7e3559e5851e91.js.gz\", \"content_type\": \"text/javascript\"}, {\"hash\": \"5fa093d5b1719491c08cbf21f8be2eb8\", \"last_modified\": \"2014-01-15T19:06:38.384030\", \"bytes\": 69266, \"name\": \"assets/presentation-b39166c7f3a34297d31754f6444b9886.css\", \"content_type\": \"text/css\"}, {\"hash\": \"ecd371af4acd31e8c412c029222e5605\", \"last_modified\": \"2014-01-15T19:06:38.709540\", \"bytes\": 11935, \"name\": \"assets/presentation-b39166c7f3a34297d31754f6444b9886.css.gz\", \"content_type\": \"text/css\"}, {\"hash\": \"c91986843d4465acdfb2ea4464899b2f\", \"last_modified\": \"2014-01-15T19:06:38.963930\", \"bytes\": 2942, \"name\": \"assets/schema-ddc7ed12c428060203ee265e81bd9b17.png\", \"content_type\": \"image/png\"}, {\"hash\": \"6ef464382576a27ed4e17e5409b71a7b\", \"last_modified\": \"2014-01-15T19:06:39.642270\", \"bytes\": 2731, \"name\": \"assets/schema_small-8dbdd3a46f4a9e63f41a2d5059fe981e.png\", \"content_type\": \"image/png\"}, {\"hash\": \"d1ae27aab7abfd985262b20b673d0f3b\", \"last_modified\": \"2014-01-15T19:06:39.881830\", \"bytes\": 2947, \"name\": \"assets/scroll-mouse-09cabb9d7f157177aab82822c7453481.png\", \"content_type\": \"image/png\"}, {\"hash\": \"940a0c14b5dbe5001b22c21e16b474a7\", \"last_modified\": \"2014-01-15T19:06:40.697920\", \"bytes\": 4019, \"name\": \"assets/section_semicircles-dbb04e4af4617cd96be4bbd3d85ce0f1.png\", \"content_type\": \"image/png\"}, {\"hash\": \"b6e50a010ec2c43a7f3cc5321b895965\", \"last_modified\": \"2014-01-15T19:07:01.516680\", \"bytes\": 90216, \"name\": \"assets/server-28db26f31af115892020dd1344128730.css\", \"content_type\": \"text/css\"}, {\"hash\": \"789d02c139b0fad10be343aa83674d5b\", \"last_modified\": \"2014-01-15T19:07:01.661750\", \"bytes\": 13758, \"name\": \"assets/server-28db26f31af115892020dd1344128730.css.gz\", \"content_type\": \"text/css\"}, {\"hash\": \"e20b103791c29b64894826eddf5f4de0\", \"last_modified\": \"2014-01-15T19:07:02.088050\", \"bytes\": 381435, \"name\": \"assets/server-65446aae8a68d9492f6b6f2ac03f2748.js\", \"content_type\": \"text/javascript\"}, {\"hash\": \"70147f1f135b9a7ae9936ca99a23fff1\", \"last_modified\": \"2014-01-15T19:07:03.549990\", \"bytes\": 119485, \"name\": \"assets/server-65446aae8a68d9492f6b6f2ac03f2748.js.gz\", \"content_type\": \"text/javascript\"}, {\"hash\": \"d47ab96038f2d6d6b8418ae8876a642b\", \"last_modified\": \"2014-01-15T19:07:03.830210\", \"bytes\": 1391, \"name\": \"assets/service-icons/admin-0b33624c8a6bf5bfc829a11a023b790e.png\", \"content_type\": \"image/png\"}, {\"hash\": \"4db1f1debc36c0a11d8372d3a60f13d7\", \"last_modified\": \"2014-01-15T19:07:05.664330\", \"bytes\": 1939, \"name\": \"assets/service-icons/design-f52acc72b8e89ad61cc4e18cc4f6a8cb.png\", \"content_type\": \"image/png\"}, {\"hash\": \"15957b0d26cc598f149ae14d1e34a980\", \"last_modified\": \"2014-01-15T19:07:05.831950\", \"bytes\": 1336, \"name\": \"assets/service-icons/dev-a6d18ba45f5867c390de365853c44f93.png\", \"content_type\": \"image/png\"}, {\"hash\": \"dd0ac9994ed52a35f488a44c0fe2011e\", \"last_modified\": \"2014-01-15T19:07:06.005530\", \"bytes\": 1506, \"name\": \"assets/service-icons/one-s-af5de59ae1bc46843f465408b7acae70.png\", \"content_type\": \"image/png\"}, {\"hash\": \"5ad9f0ee579329ba908383b6cea344fe\", \"last_modified\": \"2014-01-15T19:07:06.393400\", \"bytes\": 2332, \"name\": \"assets/service-icons/one-s-big-180cc7d9d606727be8d67b7add676777.png\", \"content_type\": \"image/png\"}, {\"hash\": \"236634538ec7a1e15ec2bd360ef5a3f9\", \"last_modified\": \"2014-01-15T19:07:06.454220\", \"bytes\": 1443, \"name\": \"assets/service-icons/servers-5d005629ff90784682d37df727ff3721.png\", \"content_type\": \"image/png\"}, {\"hash\": \"fe27a490893e9d7bb6ff12394b13bf34\", \"last_modified\": \"2014-01-15T19:07:06.672590\", \"bytes\": 5765, \"name\": \"assets/service-icons/service-icons-sprite-27982cba4e0c972cf21d1ca9e7618d44.png\", \"content_type\": \"image/png\"}, {\"hash\": \"779eaf8102a86bda14ced2e767867df2\", \"last_modified\": \"2014-01-15T19:07:06.831780\", \"bytes\": 1301, \"name\": \"assets/slides-parts/draw-screen-77884a4108b1a9cd5f8d42892257b494.png\", \"content_type\": \"image/png\"}, {\"hash\": \"5e00e466134a76ce1b08322ff40db7b0\", \"last_modified\": \"2014-01-15T19:07:07.547430\", \"bytes\": 1157, \"name\": \"assets/slides-parts/electro-socket-16d763abead7de54fe1eaff0c30be331.png\", \"content_type\": \"image/png\"}, {\"hash\": \"a3a5a189315fff03e6c2f0c7bd926655\", \"last_modified\": \"2014-01-15T19:07:07.688070\", \"bytes\": 1097, \"name\": \"assets/slides-parts/electro-socket_no-shadow-498bb13863d9534e08789ab18d17f1c2.png\", \"content_type\": \"image/png\"}, {\"hash\": \"2a127c45a4d756bf8a5e8b27e0b3c8b9\", \"last_modified\": \"2014-01-15T19:07:07.927620\", \"bytes\": 13501, \"name\": \"assets/slides-parts/map-792b2406d3698043f87a8c7a87a18cd8.png\", \"content_type\": \"image/png\"}, {\"hash\": \"b7f485a011d60f0d30ca0680c2a0e8e6\", \"last_modified\": \"2014-01-15T19:07:08.074640\", \"bytes\": 1502, \"name\": \"assets/slides-parts/net-15251918b4323c9c295e9ff7f1fa877a.png\", \"content_type\": \"image/png\"}, {\"hash\": \"4e63c307fb8a06ef329af147302706cc\", \"last_modified\": \"2014-01-15T19:07:08.291050\", \"bytes\": 1651, \"name\": \"assets/slides-parts/phone-0c85ebde1cbaf54c8464df285b5289fd.png\", \"content_type\": \"image/png\"}, {\"hash\": \"fae6342fa041cb7be9a6bd71a8379b0a\", \"last_modified\": \"2014-01-15T19:07:08.522990\", \"bytes\": 1765, \"name\": \"assets/slides-parts/router-141eef70fd51345b0c6517514eeb1a83.png\", \"content_type\": \"image/png\"}, {\"hash\": \"d039a37688445b91e920c4f6b2dbdf39\", \"last_modified\": \"2014-01-15T19:07:08.648490\", \"bytes\": 1711, \"name\": \"assets/slides-parts/schety-688dd3bed585e8b235de4ba3c63e432c.png\", \"content_type\": \"image/png\"}, {\"hash\": \"605e5469ad76af79e27916232c1feb1b\", \"last_modified\": \"2014-01-15T19:07:08.987940\", \"bytes\": 1212, \"name\": \"assets/slides-parts/screen-15b942c8ed15370cba1c09e646cd1dd6.png\", \"content_type\": \"image/png\"}, {\"hash\": \"abb9b53e9f94fa62488ee732deb1246c\", \"last_modified\": \"2014-01-15T19:07:09.224650\", \"bytes\": 2496, \"name\": \"assets/slides-parts/server-37acbb30a54acf13075c49c5464e7344.png\", \"content_type\": \"image/png\"}, {\"hash\": \"2aa53675059a95c389149091fb241dba\", \"last_modified\": \"2014-01-15T19:07:09.480070\", \"bytes\": 2349, \"name\": \"assets/slides-parts/tablet-d0f6678a7933ab78220d600330db78cf.png\", \"content_type\": \"image/png\"}, {\"hash\": \"cd974720e034a801ef02b62bebbf34bf\", \"last_modified\": \"2014-01-15T19:07:09.714070\", \"bytes\": 49707, \"name\": \"assets/static-baf86ef61383734f7de2895c70dd9d69.css\", \"content_type\": \"text/css\"}, {\"hash\": \"2e9702929a550c1d383b47a5caddb738\", \"last_modified\": \"2014-01-15T19:07:09.945550\", \"bytes\": 9114, \"name\": \"assets/static-baf86ef61383734f7de2895c70dd9d69.css.gz\", \"content_type\": \"text/css\"}, {\"hash\": \"1adb8de9f3ee77497b83a8273fd90899\", \"last_modified\": \"2014-01-15T19:07:12.517070\", \"bytes\": 165687, \"name\": \"assets/static-df951e61ead8d300a3049aaa74c1522e.js\", \"content_type\": \"text/javascript\"}, {\"hash\": \"5920790c43aacfe1a7a680684fcd3dc4\", \"last_modified\": \"2014-01-15T19:07:12.677800\", \"bytes\": 55022, \"name\": \"assets/static-df951e61ead8d300a3049aaa74c1522e.js.gz\", \"content_type\": \"text/javascript\"}, {\"hash\": \"a1776ef85560137d13f0ea13f89810d0\", \"last_modified\": \"2014-01-15T19:07:12.805720\", \"bytes\": 968, \"name\": \"assets/teo-select-right-bg-813e87762f7cec74d628fb84fad2a897.png\", \"content_type\": \"image/png\"}, {\"hash\": \"b6e50a010ec2c43a7f3cc5321b895965\", \"last_modified\": \"2014-01-15T19:07:13.085520\", \"bytes\": 90216, \"name\": \"assets/web-28db26f31af115892020dd1344128730.css\", \"content_type\": \"text/css\"}, {\"hash\": \"789d02c139b0fad10be343aa83674d5b\", \"last_modified\": \"2014-01-15T19:07:13.279530\", \"bytes\": 13758, \"name\": \"assets/web-28db26f31af115892020dd1344128730.css.gz\", \"content_type\": \"text/css\"}, {\"hash\": \"a044b54c13f46b745c3b31866a5260b3\", \"last_modified\": \"2014-01-15T19:07:13.592070\", \"bytes\": 381577, \"name\": \"assets/web-92fc6a9ca6253a3881f1779db6c969a3.js\", \"content_type\": \"text/javascript\"}, {\"hash\": \"aa328f551baafe06c11addebeb825d26\", \"last_modified\": \"2014-01-15T19:07:13.819090\", \"bytes\": 119522, \"name\": \"assets/web-92fc6a9ca6253a3881f1779db6c969a3.js.gz\", \"content_type\": \"text/javascript\"}]", :headers=>{"Date"=>"Wed, 15 Jan 2014 23:01:55 GMT", "Server"=>"Selectel_Storage/1.0", "content-length"=>"10191", "x-container-object-count"=>"50", "accept-ranges"=>"bytes", "x-container-bytes-used"=>"2751048", "x-timestamp"=>"1389806016.94234", "x-container-meta-type"=>"public", "x-container-meta-cache-control"=>"public", "content-type"=>"application/json; charset=utf-8", "X-Container-Domains"=>"", "Access-Control-Allow-Origin"=>"*", "Access-Control-Expose-Headers"=>"x-container-object-count, x-container-bytes-used, x-timestamp, x-container-meta-type, x-container-meta-cache-control, x-container-domains", "Connection"=>"close"}, :status=>200, :remote_ip=>"188.93.16.238"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment