lib/stella/data/http.rb in stella-0.7.6.001 vs lib/stella/data/http.rb in stella-0.7.6.003

- old
+ new

@@ -3,30 +3,34 @@ module Stella::Data::HTTP class Request < Storable include Gibbler::Complex include Stella::Data::Helpers - # A hash containing blocks to be executed depending on the HTTP response status. - # The hash keys are numeric HTTP Status Codes. - # - # 200 => { ... } - # 304 => { ... } - # 500 => { ... } - # - attr_accessor :response_handler + field :id, &gibbler_id_processor + # Store the description in the attic so + # it's not used in the gibbler digest. + attic :description field :description + field :header field :uri field :wait field :params field :body field :http_method field :http_version field :content_type field :http_auth - attic :description + # A hash containing blocks to be executed depending on the HTTP response status. + # The hash keys are numeric HTTP Status Codes. + # + # 200 => { ... } + # 304 => { ... } + # 500 => { ... } + # + field :response_handler, &hash_proc_processor def has_body? !@body.nil? end \ No newline at end of file