관리-도구
편집 파일: cdesc-ConditionalGet.yaml
--- !ruby/object:RI::ClassDescription attributes: [] class_methods: - !ruby/object:RI::MethodSummary name: new comment: - !ruby/struct:SM::Flow::P body: Middleware that enables conditional GET using If-None-Match and If-Modified-Since. The application should set either or both of the Last-Modified or Etag response headers according to RFC 2616. When either of the conditions is met, the response body is set to be zero length and the response status is set to 304 Not Modified. - !ruby/struct:SM::Flow::P body: Applications that defer response body generation until the body's each message is received will avoid response body generation completely when a conditional GET matches. - !ruby/struct:SM::Flow::P body: "Adapted from Michael Klishin's Merb implementation: https://github.com/wycats/merb/blob/master/merb-core/lib/merb-core/rack/middleware/conditional_get.rb" constants: [] full_name: Rack::ConditionalGet includes: [] instance_methods: - !ruby/object:RI::MethodSummary name: call name: ConditionalGet superclass: Object