xenon-http/lib/xenon/headers/if_unmodified_since.rb
require 'xenon/headers'
module Xenon
class Headers
# http://tools.ietf.org/html/rfc7232#section-3.4
class IfUnmodifiedSince < Header 'If-Unmodified-Since'
attr_reader :date
def initialize(date)
@date = date
end
def self.parse(s)
new(Time.httpdate(s))
end
def to_s
@date.httpdate
end
end
end
end