Class: WEBrick::HTTPResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/hanoi/webrick.rb

Instance Method Summary collapse

Instance Method Details

#fail_silentlyObject



24
25
26
# File 'lib/hanoi/webrick.rb', line 24

def fail_silently
  @fail_silently = true
end

#fail_silently?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/hanoi/webrick.rb', line 20

def fail_silently?
  @fail_silently
end

#sendObject



15
# File 'lib/hanoi/webrick.rb', line 15

alias send send_response

#send_response(socket) ⇒ Object



16
17
18
# File 'lib/hanoi/webrick.rb', line 16

def send_response(socket)
  send(socket) unless fail_silently?
end