README.md in flexirest-1.3.13 vs README.md in flexirest-1.3.14
- old
+ new
@@ -694,9 +694,11 @@
class Person < Flexirest::Base
get :all, "/v1/people", plain: true
end
```
+The response of a plain request (from either source) is a `Flexirest::PlainResponse` which acts like a string containing the response's body, but it also has a `_headers` method that returns the HTTP response headers and a `_status` method containing the response's HTTP method.
+
### Proxying APIs
Sometimes you may be working with an old API that returns JSON in a less than ideal format or the URL or parameters required have changed. In this case you can define a descendent of `Flexirest::ProxyBase`, pass it to your model as the proxy and have it rework URLs/parameters on the way out and the response on the way back in (already converted to a Ruby hash/array). By default any non-proxied URLs are just passed through to the underlying connection layer. For example:
```ruby