Registry / networking / http-parser-rb

http-parser-rb

JSON →
library0.8.1rbrubygemsunverified

Ruby bindings to https://github.com/joyent/http-parser and https://github.com/http-parser/http-parser.java

gem install http_parser.rb
INSTALL
IMPORT
SIG · HTTP-PARSER-RB
H
http-parser-rb
networkingrubyv0.8.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HttpParser
require 'http/parser'

Parse HTTP request/response data

require 'http/parser' parser = HttpParser::Parser.new parser << "GET / HTTP/1.1\r\nHost: example.com\r\n\r\n" puts parser.http_method # => "GET" puts parser.request_url # => "/"
Debug
Known issues
breakingThis gem is a binding to a C library; compilation may fail on some systems without a C compiler.
fix
Ensure you have a C compiler (e.g., gcc) and the necessary development headers installed.
affects: >= 0.0.0
Upgrade
Version history
0.8.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
http-parser-rb — gem install http-parser-rb · libregistry