Permalink
Browse files

README organization

  • Loading branch information...
1 parent 895be50 commit 42a23f840dce149435b0f6c1fc73eb52f7ecae4c @mwunsch committed Sep 18, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 README.md
View
12 README.md
@@ -119,6 +119,12 @@ No matter how you get there, you'll end up with a Weary::Request object. Call th
By default, the request is performed through [Net::HTTP](http://www.ruby-doc.org/stdlib-1.9.3/libdoc/net/http/rdoc/Net/HTTP.html). This is done through `Weary::Adapter::NetHttp`. A `Weary::Adapter` is just a special kind of Rack application. `Request#adapter` allows you to hook up your own. Weary also includes adapters for [Typhoeus](http://typhoeus.github.com/) and [Excon](https://github.com/geemus/excon).
+#### Requestable
+
+`Client`, `Resource`, and `Request` include a Module named `Requestable`. Using this module, it's easy to cascade certain pieces of configuration down from the stack.
+
+For example, you can call `Client#adapter` to change the adapter for all of the resources of that client. Or you can call `Resource#adapter` to change the adapter for requests built for that resource. OR you can call `Request#adapter` to change the adapter for just that request.
+
## Rack
To maximize the utility of Weary, it's important to remember that driving everything is Rack. Almost every class is built to provide a Rack interface.
@@ -133,12 +139,6 @@ Authentication, by default is done by either `Weary::Middleware::BasicAuth` or `
The point is, **it's just Rack**.
-## Requestable
-
-`Client`,`Resource`, and `Request` include a Module named `Requestable`. Using this module, it's easy to cascade certain pieces of configuration down from the stack.
-
-For example, you can call `Client#adapter` to change the adapter for all of the resources of that client. Or you can call `Resource#adapter` to change the adapter for requests built for that resource. OR you can call `Request#adapter` to change the adapter for just that request.
-
## Weary needs your help.
At this point, I need _your_ help to further Weary along. I'd love to see more examples that utilize the Rackness of Weary: using Devise, Warden, or mounted in a Rails application.

0 comments on commit 42a23f8

Please sign in to comment.