Exception: Async::HTTP::Body::Slowloris::ThroughputError
- Inherits:
-
StandardError
- Object
- StandardError
- Async::HTTP::Body::Slowloris::ThroughputError
- Defined in:
- lib/async/http/body/slowloris.rb
Instance Method Summary collapse
-
#initialize(throughput, minimum_throughput, time_since_last_write) ⇒ ThroughputError
constructor
A new instance of ThroughputError.
Constructor Details
#initialize(throughput, minimum_throughput, time_since_last_write) ⇒ ThroughputError
Returns a new instance of ThroughputError.
16 17 18 |
# File 'lib/async/http/body/slowloris.rb', line 16 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 |