README.md in determinator-2.7.0 vs README.md in determinator-2.7.1

- old
+ new

@@ -154,9 +154,26 @@ Determinator.feature_cache.expire(deserialized_kafka_feature.name) ``` This will expire both the limited local cache and the larger shared cache. +### Using hooks for retriever + +```HttpRetriever``` has ```before_retrieve``` and ```after_retrieve``` hooks. + +Example of usage: +```ruby +http_retriever = Determinator::Retrieve::HttpRetriever.new(faraday_connection) + +http_retriever.before_retrieve do + do_something +end + +http_retriever.after_retrieve do |status, err| + raise err if err + do_something(status) +end +``` ## Further Usage Once this is done you can ask for a determination like this: ```ruby