Giter Site home page Giter Site logo

net-http's Introduction

This repo contains a number of experimental modifications to the version of Net::HTTP that ships with Ruby 1.9. TODOs:

  • Porting the code to work on Ruby 1.8
  • Fixed gzip in GET requests when using a block as iterator
  • Support for gzip and deflate responses from any request
  • Support for incremental gzip and deflate with chunked encoding
  • Support for leaving the socket open when making a request, so it's possible to make requests that do not block on the body being returned
  • Cleaned up tests so that it's possible to combine tests for features, instead of using brittle checks for specific classes
  • Support for Net::HTTP.get(path), instead of needing to pass a URI or deconstruct the URL yourself
  • In keepalive situations, make sure to read any remaining body from the socket before initiating a new connection.
  • Support for partial reads from the response
  • Clean up the semantics of when #body can be called after a request. Specifically, if a block form is used, decide whether to buffer the outputted String and make it available as #body or to leave it up to the consumer to store a String if they want one. Either way, fomalize and document the semantics.
  • The body method should never return an Adapter. It should either return a String or nil (if well-defined semantics justify a nil)
  • Support for read_nonblock to BufferedIO. This simply proxies to the underlying read_nonblock and make it easy to support HTTP-level read_nonblock
  • Support for read_nonblock on Net2::HTTP::Response
  • Other features as I think of them

net-http's People

Contributors

wycats avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.