Crest::Request.new(:get, "http://example.com") do |request|
request.http_client.before_request do |http_request|
something = DoSomething.new(SECRET)
something.do(http_request)
end
end
Crest::Resource.new("http://example.com") do |resource|
resource.http_client.before_request do |http_request|
something = DoSomething.new(SECRET)
something.do(http_request)
end
end