class NetHttp2::Response

Attributes

body[R]
headers[R]

Public Class Methods

new(options={}) click to toggle source
# File lib/net-http2/response.rb, line 6
def initialize(options={})
  @headers = options[:headers]
  @body    = options[:body]
end

Public Instance Methods

ok?() click to toggle source
# File lib/net-http2/response.rb, line 15
def ok?
  status == '200'
end
status() click to toggle source
# File lib/net-http2/response.rb, line 11
def status
  @headers[':status'] if @headers
end