Class: WEBrick::HTTPResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/newjs/jstest.rb

Instance Method Summary collapse

Instance Method Details

#fail_silentlyObject



188
189
190
# File 'lib/newjs/jstest.rb', line 188

def fail_silently
  @fail_silently = true
end

#fail_silently?Boolean

Returns:

  • (Boolean)


184
185
186
# File 'lib/newjs/jstest.rb', line 184

def fail_silently?
  @fail_silently
end

#sendObject



179
# File 'lib/newjs/jstest.rb', line 179

alias send send_response

#send_response(socket) ⇒ Object



180
181
182
# File 'lib/newjs/jstest.rb', line 180

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