Sha256: 7600982646bf7dd7be549eefa664ca1621bdc6410c10ecd5c17c0a3134ceeb8a
Contents?: true
Size: 759 Bytes
Versions: 1
Compression:
Stored size: 759 Bytes
Contents
# ==== RequestHistory # Uses RequestBuilder and remind previous requests # # ==== Example: # # @executor = ::Restfulie::Client::HTTP::RequestHistoryExecutor.new("http://restfulie.com") #this class includes RequestHistory module. # @executor.at('/posts').as('application/xml').accepts('application/atom+xml').with('Accept-Language' => 'en').get.code #=> 200 #first request # @executor.at('/blogs').as('application/xml').accepts('application/atom+xml').with('Accept-Language' => 'en').get.code #=> 200 #second request # @executor.request_history!(0) #doing first request # class Restfulie::Client::Feature::HistoryRequest def execute(flow, request, env) resp = flow.continue(request, env) request.make_snapshot(request) resp end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
restfulie-1.0.0.beta4 | lib/restfulie/client/feature/history_request.rb |