class IntervalResponse::Empty
Serves out a response that is of size 0
Public Instance Methods
content_length()
click to toggle source
# File lib/interval_response/empty.rb, line 7 def content_length 0 end
headers()
click to toggle source
# File lib/interval_response/empty.rb, line 11 def headers { 'Accept-Ranges' => 'bytes', 'Content-Length' => '0', 'Content-Type' => 'binary/octet-stream', 'ETag' => etag, } end
status_code()
click to toggle source
# File lib/interval_response/empty.rb, line 3 def status_code 200 end