Method: Async::HTTP::Protocol::HTTP2::Stream#prepare_input
- Defined in:
- lib/async/http/protocol/http2/stream.rb
#prepare_input(length) ⇒ Input
Prepare the input stream which will be used for incoming data frames.
83 84 85 86 87 88 89 |
# File 'lib/async/http/protocol/http2/stream.rb', line 83 def prepare_input(length) if @input.nil? @input = Input.new(self, length) else raise ArgumentError, "Input body already prepared!" end end |