Skip to content

Instantly share code, notes, and snippets.

@yangchenyun
Created May 27, 2013 08:45
Show Gist options
  • Save yangchenyun/5655902 to your computer and use it in GitHub Desktop.
Save yangchenyun/5655902 to your computer and use it in GitHub Desktop.
{
:method => :post,
:body => {
"success" => true
},
:url => #<URI::HTTPS:0x007f9331a165f0 URL:https://api.segment.io/v1/import>,
:request_headers => {
"Accept" => "application/json",
"Content-Type" => "application/json"
},
:parallel_manager => nil,
:request => {
:proxy => nil
},
:ssl => {
:verify => false
},
:status => 200,
:response_headers => {
"cache-control" => "no-cache, no-store",
"content-type" => "application/json; charset=utf-8",
"date" => "Mon, 27 May 2013 08:33:16 GMT",
"x-powered-by" => "Express",
"content-length" => "16",
"connection" => "Close"
},
:response => #<Faraday::Response:0x007f935a98a040 @env={:method=>:post, :body=>{"success"=>true}, :url=>#<URI::HTTPS:0x007f9331a165f0 URL:https://api.segment.io/v1/import>, :request_headers=>{"Accept"=>"application/json", "Content-Type"=>"application/json"}, :parallel_manager=>nil, :request=>{:proxy=>nil}, :ssl=>{:verify=>false}, :status=>200, :response_headers=>{"cache-control"=>"no-cache, no-store", "content-type"=>"application/json; charset=utf-8", "date"=>"Mon, 27 May 2013 08:33:16 GMT", "x-powered-by"=>"Express", "content-length"=>"16", "connection"=>"Close"}, :response=>#<Faraday::Response:0x007f935a98a040 ...>}, @on_complete_callbacks=[]>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment