Class: Bane::Behaviors::DelugeResponse
- Inherits:
-
BasicBehavior
- Object
- BasicBehavior
- Bane::Behaviors::DelugeResponse
- Defined in:
- lib/bane/behaviors.rb
Overview
Sends a large response. Response consists of a repeated ‘x’ character.
Options
- length: The size in bytes of the response to send. Default: 1,000,000 bytes
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from BasicBehavior
Instance Method Details
#serve(io, options) ⇒ Object
124 125 126 127 128 129 |
# File 'lib/bane/behaviors.rb', line 124 def serve(io, ) = {:length => 1_000_000}.merge() length = [:length] length.times { io.write('x') } end |