https://github.com/cotag/http-parser
A super fast http parser for ruby
https://github.com/cotag/http-parser
Last synced: about 2 hours ago
JSON representation
Repository metadata
A super fast http parser for ruby
- Host: GitHub
- URL: https://github.com/cotag/http-parser
- Owner: cotag
- License: mit
- Created: 2013-08-01T09:19:57.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2021-01-11T09:00:39.000Z (about 5 years ago)
- Last Synced: 2026-02-22T22:34:03.608Z (9 days ago)
- Language: Ruby
- Homepage:
- Size: 40 KB
- Stars: 19
- Watchers: 8
- Forks: 16
- Open Issues: 8
- Releases: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
README.md
http-parser
Ruby FFI bindings to http-parser 
Install
gem install http-parser
This gem will compile a local copy of http-parser
Usage
require 'rubygems'
require 'http-parser'
#
# Create a shared parser
#
parser = HttpParser::Parser.new do |parser|
parser.on_message_begin do |inst|
puts "message begin"
end
parser.on_message_complete do |inst|
puts "message end"
end
parser.on_url do |inst, data|
puts "url: #{data}"
end
parser.on_header_field do |inst, data|
puts "field: #{data}"
end
parser.on_header_value do |inst, data|
puts "value: #{data}"
end
end
#
# Create state objects to track requests through the parser
#
request = HttpParser::Parser.new_instance do |inst|
inst.type = :request
end
#
# Parse requests
#
parser.parse request, "GET /foo HTTP/1.1\r\n"
sleep 3
parser.parse request, "Host: example.com\r\n"
sleep 3
parser.parse request, "\r\n"
#
# Re-use the memory for another request
#
request.reset!
Acknowledgements
Owner metadata
- Name: CoTag Media
- Login: cotag
- Email: projects@cotag.me
- Kind: organization
- Description:
- Website: http://cotag.me/
- Location: Sydney Australia
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/2416391?v=4
- Repositories: 44
- Last ynced at: 2024-03-25T20:35:06.445Z
- Profile URL: https://github.com/cotag
GitHub Events
Total
- Watch event: 1
- Issue comment event: 1
Last Year
- Issue comment event: 1
Committers metadata
Last synced: 1 day ago
Total Commits: 44
Total Committers: 7
Avg Commits per committer: 6.286
Development Distribution Score (DDS): 0.273
Commits in past year: 0
Committers in past year: 0
Avg Commits per committer in past year: 0.0
Development Distribution Score (DDS) in past year: 0.0
| Name | Commits | |
|---|---|---|
| Stephen von Takach | s****e@c****e | 32 |
| Stephen von Takach | s****e@a****m | 6 |
| Matt Williams | m****t@m****k | 2 |
| Marcus Crafter | c****m@r****m | 1 |
| Kevin Cheng | k****g@a****m | 1 |
| Joel Ambass | j****l@e****m | 1 |
| Cameron Reeves | c****m@q****m | 1 |
Committer domains:
- quaypay.com: 1
- electricfeel.com: 1
- amazon.com: 1
- redartisan.com: 1
- makeable.co.uk: 1
- acaprojects.com: 1
- cotag.me: 1
Issue and Pull Request metadata
Last synced: 15 days ago
Total issues: 13
Total pull requests: 5
Average time to close issues: about 1 month
Average time to close pull requests: 6 days
Total issue authors: 12
Total pull request authors: 4
Average comments per issue: 3.38
Average comments per pull request: 0.4
Merged pull request: 5
Bot issues: 0
Bot pull requests: 0
Past year issues: 0
Past year pull requests: 0
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 0
Past year pull request authors: 0
Past year average comments per issue: 0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- rgaufman (2)
- arbales (1)
- lucaskanashiro (1)
- DmitryBochkarev (1)
- bf4 (1)
- tycooon (1)
- stravid (1)
- crafterm (1)
- erwinwolff (1)
- Kache (1)
- jubishop (1)
- hopewise (1)
Top Pull Request Authors
- makeable (2)
- Jcambass (1)
- crafterm (1)
- Kache (1)
Top Issue Labels
Top Pull Request Labels
Package metadata
- Total packages: 11
-
Total downloads:
- rubygems: 105,369,406 total
- Total docker downloads: 465,015,934
- Total dependent packages: 6 (may contain duplicates)
- Total dependent repositories: 4,267 (may contain duplicates)
- Total versions: 29
- Total maintainers: 2
gem.coop: http-parser
A super fast http parser for ruby. Cross platform and multiple ruby implementation support thanks to ffi.
- Homepage: https://github.com/cotag/http-parser
- Documentation: http://www.rubydoc.info/gems/http-parser/
- Licenses: MIT
- Latest release: 1.2.3 (published about 5 years ago)
- Last Synced: 2026-03-02T23:30:45.292Z (1 day ago)
- Versions: 10
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 52,704,278 Total
- Docker Downloads: 232,507,967
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.24%
- Docker downloads count: 0.471%
- Downloads: 0.489%
- Maintainers (2)
rubygems.org: http-parser
A super fast http parser for ruby. Cross platform and multiple ruby implementation support thanks to ffi.
- Homepage: https://github.com/cotag/http-parser
- Documentation: http://www.rubydoc.info/gems/http-parser/
- Licenses: MIT
- Latest release: 1.2.3 (published about 5 years ago)
- Last Synced: 2026-02-28T23:00:52.106Z (3 days ago)
- Versions: 10
- Dependent Packages: 6
- Dependent Repositories: 4,267
- Downloads: 52,665,128 Total
- Docker Downloads: 232,507,967
-
Rankings:
- Downloads: 0.429%
- Dependent repos count: 0.48%
- Docker downloads count: 0.582%
- Dependent packages count: 2.484%
- Average: 3.785%
- Forks count: 6.595%
- Stargazers count: 12.141%
- Maintainers (2)
debian-11: ruby-http-parser
- Homepage: https://github.com/cotag/http-parser
- Documentation: https://packages.debian.org/bullseye/ruby-http-parser
- Licenses:
- Latest release: 1.2.1-4 (published 21 days ago)
- Last Synced: 2026-02-13T08:21:22.223Z (19 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-12: ruby-http-parser
- Homepage: https://github.com/cotag/http-parser
- Documentation: https://packages.debian.org/bookworm/ruby-http-parser
- Licenses:
- Latest release: 1.2.1-6 (published 19 days ago)
- Last Synced: 2026-02-12T23:32:26.346Z (19 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
debian-13: ruby-http-parser
- Homepage: https://github.com/cotag/http-parser
- Documentation: https://packages.debian.org/trixie/ruby-http-parser
- Licenses:
- Latest release: 1.2.3-1 (published 20 days ago)
- Last Synced: 2026-02-13T13:16:24.259Z (19 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
Dependencies
- rubysl >= 0
- rake ~> 11.2 development
- rspec ~> 3.5 development
- yard ~> 0.9 development
- ffi-compiler >= 1.0, < 2.0
Score: 25.40357821020835