Sha256: 3ad4240129f844690df87d73f7df0e81fcca2de69f6e3834e6b92500a5259dfe
Contents?: true
Size: 288 Bytes
Versions: 27
Compression:
Stored size: 288 Bytes
Contents
module NetHttp2 class Response attr_reader :headers, :body def initialize(options={}) @headers = options[:headers] @body = options[:body] end def status @headers[':status'] if @headers end def ok? status == '200' end end end
Version data entries
27 entries across 27 versions & 1 rubygems