Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

describe idempotent and nonblock options in readme

  • Loading branch information...
1 parent 920dd0d commit 551169ec295780a4a3f4d953632c87de853cd677 @geemus geemus committed
Showing with 6 additions and 0 deletions.
  1. +6 −0
@@ -54,6 +54,12 @@ Both one-off and persistent connections support many other options. Here are a f
connection.request(:method => :get)
connection.request(:method => 'GET')
+ # this request can be repeated safely, so retry on errors up to 3 times
+ connection.request(:idempotent => true)
+ # opt out of nonblocking operations for performance and/or as a workaround
+ connection.request(:nonblock => false)
These options can be combined to make pretty much any request you might need.
Excon can also expect one or more HTTP status code in response, raising an exception if the response does not meet the criteria.

0 comments on commit 551169e

Please sign in to comment.
Something went wrong with that request. Please try again.