lib/httpx/connection/http2.rb in httpx-0.15.4 vs lib/httpx/connection/http2.rb in httpx-0.16.0
- old
+ new
@@ -9,11 +9,11 @@
include Callbacks
include Loggable
MAX_CONCURRENT_REQUESTS = HTTP2Next::DEFAULT_MAX_CONCURRENT_STREAMS
- Error = Class.new(Error) do
+ class Error < Error
def initialize(id, code)
super("stream #{id} closed with error: #{code}")
end
end
@@ -388,19 +388,9 @@
if !@pings.delete(ping.to_s)
close(:protocol_error, "ping payload did not match")
else
emit(:pong)
end
- end
-
- def respond_to_missing?(meth, *args)
- @connection.respond_to?(meth, *args) || super
- end
-
- def method_missing(meth, *args, &blk)
- return super unless @connection.respond_to?(meth)
-
- @connection.__send__(meth, *args, &blk)
end
end
Connection.register "h2", Connection::HTTP2
end