Sha256: 3e719fa55c30fa708c42476cde2e9d33d86f2d4b96fece74687e02c4bf179311
Contents?: true
Size: 1.35 KB
Versions: 1
Compression:
Stored size: 1.35 KB
Contents
# ffi-http-parser * [Homepage](https://github.com/postmodern/ffi-http-parser#readme) * [Issues](https://github.com/postmodern/ffi-http-parser/issues) * [Documentation](http://rubydoc.info/gems/ffi-http-parser/frames) * [Email](mailto:postmodern.mod3 at gmail.com) ## Description Ruby FFI bindings to the [http-parser][1] library. ## Features * Provides the same API as [http-parser-lite][2]. * Supports: * Ruby 1.8.7 * Ruby >= 1.9.1 * JRuby >= 1.6.7 ## Examples require 'ffi/http/parser' parser = FFI::HTTP::Parser.new do |parser| parser.on_message_begin do puts "message begin" end parser.on_message_complete do puts "message end" end parser.on_url do |data| puts "url: #{data}" end parser.on_header_field do |data| puts "field: #{data}" end parser.on_header_value do |data| puts "value: #{data}" end parser.on_body do |data| puts "body: #{data}" end end ## Requirements * [http-parser](https://github.com/joyent/http-parser#readme) 1.0 * [ffi](https://github.com/ffi/ffi#readme) ~> 1.0 ## Install $ gem install ffi-http-parser ## Copyright Copyright (c) 2012 Hal Brodigan See {file:LICENSE.txt} for details. [1]: https://github.com/joyent/http-parser#readme [2]: https://github.com/deepfryed/http-parser-lite#readme
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffi-http-parser-0.1.0 | README.md |