method
write
v5.2.3 -
Show latest stable
- Class:
ActionController::Live::Buffer
write(string)public
No documentation available.
# File actionpack/lib/action_controller/metal/live.rb, line 147
def write(string)
unless @response.committed?
@response.set_header "Cache-Control", "no-cache"
@response.delete_header "Content-Length"
end
super
unless connected?
@buf.clear
unless @ignore_disconnect
# Raise ClientDisconnected, which is a RuntimeError (not an
# IOError), because that's more appropriate for something beyond
# the developer's control.
raise ClientDisconnected, "client disconnected"
end
end
end