Sha256: 0302839143f00874d0584d01ed04f6e89702424a19aecae8b7fba6630559d1ba
Contents?: true
Size: 516 Bytes
Versions: 4
Compression:
Stored size: 516 Bytes
Contents
class Http2::BaseRequest attr_reader :http2, :args, :debug VALID_ARGUMENTS_POST = [:post, :url, :default_headers, :headers, :json, :method, :cookies, :on_content, :content_type].freeze def initialize(http2, args) @http2 = http2 @args = http2.parse_args(args) @debug = http2.debug @nl = http2.nl @args.each_key do |key| raise "Invalid key: '#{key}'." unless VALID_ARGUMENTS_POST.include?(key) end @conn = @http2.connection end def path @args.fetch(:url) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
http2-0.0.36 | lib/http2/base_request.rb |
http2-0.0.35 | lib/http2/base_request.rb |
http2-0.0.34 | lib/http2/base_request.rb |
http2-0.0.33 | lib/http2/base_request.rb |