Exception: Async::HTTP::Body::Slowloris::ThroughputError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/async/http/body/slowloris.rb

Instance Method Summary collapse

Constructor Details

#initialize(throughput, minimum_throughput, time_since_last_write) ⇒ ThroughputError

Returns a new instance of ThroughputError.



33
34
35
# File 'lib/async/http/body/slowloris.rb', line 33

def initialize(throughput, minimum_throughput, time_since_last_write)
	super("Slow write: #{throughput.round(1)}bytes/s less than required #{minimum_throughput.round}bytes/s.")
end