Browse files

Add note on adapters and setting a default.

  • Loading branch information...
djanowski committed Apr 6, 2012
1 parent b6a5604 commit 8dbab6f42c26a71e96f2805a214d168799f10dd1
Showing with 14 additions and 0 deletions.
  1. +14 −0
@@ -64,6 +64,20 @@ If you're ready to roll with just the bare minimum:
response = Faraday.get ''
+## Adapters
+Check [this]( for a list
+of currently supported adapters.
+By default, Faraday will use the `Net::HTTP` adapter, which doesn't have
+dependencies outside of Ruby's standard library.
+You can set a different global default. For example:
+Faraday.default_adapter = :net_http_persistent
## Advanced middleware usage
The order in which middleware is stacked is important. Like with Rack, the first middleware on the list wraps all others, while the last middleware is the innermost one, so that's usually the adapter.

0 comments on commit 8dbab6f

Please sign in to comment.