Skip to content


MIT - 6 885
131.3 thousand (month) Sep 25 2013 1.0.0(8 days ago)
507 3 11 NA
Apr 20 2010 41.2 thousand (month) 1.1.4(4 years ago)

Pure Ruby, framework and transport agnostic, implementation of HTTP/2 protocol and HPACK header compression with support for:

  • Binary framing parsing and encoding
  • Stream multiplexing and prioritization
  • Connection and stream flow control
  • Header compression and server push
  • Connection and stream management
  • And more... see API docs

Protocol specifications:

  • Hypertext Transfer Protocol Version 2 (RFC 7540)
  • HPACK: Header Compression for HTTP/2 (RFC 7541)

Nestful is a Ruby library for making HTTP requests. It is designed to provide a simple, easy-to-use interface for making requests and handling responses. Nestful is often used for making requests to RESTful APIs.

One of the main features of Nestful is its ability to automatically parse JSON and XML responses and return them as Ruby objects. This allows developers to easily access the data returned by an API without having to manually parse the response.

Netful is aimed at interacting with rest APIs and provides a convenient interface (see example below)



Example Use

require 'http/2'

# GET request
client =
response = client.get("")
puts response.body

# POST reuqest
data = { name: "value" }
response ="", data)
require 'nestful'

# GET request
response = Nestful.get('')
puts response.body
puts response.code
puts response.headers

# POST request
response =
    :format => :json, :payload => { :title => 'foo', :body => 'bar', :userId => 1 }
puts response.body

# establish interface to a specific API
class Charge < Nestful::Resource
  endpoint ''
  options :auth_type => :bearer, :password => 'sk_bar'

  def self.all

  def self.find(id)

  def refund

Charge.all #=> []

Alternatives / Similar

Was this page helpful?