Registry / networking / http-parser

http-parser

JSON →
library1.2.3rbrubygemsunverified

A super fast HTTP parser for Ruby, cross-platform with FFI support.

gem install http-parser
INSTALL
IMPORT
SIG · HTTP-PARSER
H
http-parser
networkingrubyv1.2.3
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 an HTTP request string

require 'http-parser' parser = HttpParser::Parser.new parser << "GET / HTTP/1.1\r\nHost: example.com\r\n\r\n" puts parser.http_method
Debug
Known issues
gotchaRequires FFI; may not work on all Ruby implementations without FFI support.
fix
Ensure FFI gem is installed and compatible.
affects: >= 1.0.0
Upgrade
Version history
1.2.3latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

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