module M2R::Response::AlwaysClose

Use to disable persisent connections even though your client would prefer otherwise.

@api public

Public Instance Methods

close?() click to toggle source
# File lib/m2r/response/always_close.rb, line 10
def close?
  true
end
headers(value = GETTER) click to toggle source
Calls superclass method
# File lib/m2r/response/always_close.rb, line 14
def headers(value = GETTER)
  if value == GETTER
    h = super
    h['Connection'] = 'close'
    h
  else
    super
  end
end