Module: Restfulie::Client::Feature
- Defined in:
- lib/restfulie/client/feature/retry_when_unavailable.rb,
lib/restfulie/client/feature.rb,
lib/restfulie/client/feature/base.rb,
lib/restfulie/client/feature/open_search.rb,
lib/restfulie/client/feature/setup_header.rb,
lib/restfulie/client/feature/fake_response.rb,
lib/restfulie/client/feature/enhance_response.rb,
lib/restfulie/client/feature/conneg_when_unaccepted.rb
Overview
Retries marshalling to an acceptable media type if the server returns with 406: content negotiation. This means looking for another media type that both server and client understands, picking its converter and using it to marshal the original payload again.
To use it, load it in your dsl: Restfulie.at("localhost:3000/product/2").conneg_when_unaccepted.get
Defined Under Namespace
Modules: Base, History, OpenSearch, Verb Classes: BaseRequest, Cache, ConnegWhenUnaccepted, EnhanceResponse, FakeResponse, FollowRequest, HistoryRequest, RescueException, RetryWhenUnavailable, SerializeBody, SetupHeader, ThrowErrorRequest