Method: Async::HTTP::Protocol::HTTP1#create_handler
- Defined in:
- lib/async/http/protocol/http1.rb
#create_handler(version) ⇒ Object
48 49 50 51 52 53 54 |
# File 'lib/async/http/protocol/http1.rb', line 48 def create_handler(version) if klass = HANDLERS[version] klass.server(@stream) else raise RuntimeError, "Unsupported protocol version #{version}" end end |