README.md in faraday-xml-0.1.0 vs README.md in faraday-xml-0.2.0
- old
+ new
@@ -35,10 +35,11 @@
conn = Faraday.new do |builder|
builder.headers.update(
"Accept" => "application/xml",
"Content-Type" => "application/xml;charset=UTF-8",
)
-
+ # or builder.use Faraday::XML::Request
+ builder.request :xml # encode Hash as XML
# or builder.use Faraday::XML::Response
builder.response :xml # decode response bodies from XML
end
```