HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
ry
http-parser
HISTORICAL RECORD2011–2011
ry / http-parser · Not publicly available

http-parser

Discover this repository through its Hacker News conversations.

4Distinct people
6Mentions
0Explicit recommenders
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A public description has not been verified.

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

Mentioned in the same Hacker News threads. That is not proof they are substitutes.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 11:56:56 AM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by week6 dated mentions

Observed mentions: 2011-02-19 17:37:58 UTC to 2011-07-27 19:45:37 UTC. Weeks start Monday, UTC.

0122011-02-14 00:00:00 UTC to 2011-02-21 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsFeb 142011-02-21 00:00:00 UTC to 2011-02-28 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2011-02-28 00:00:00 UTC to 2011-03-07 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2011-03-07 00:00:00 UTC to 2011-03-14 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2011-03-14 00:00:00 UTC to 2011-03-21 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2011-03-21 00:00:00 UTC to 2011-03-28 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2011-03-28 00:00:00 UTC to 2011-04-04 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2011-04-04 00:00:00 UTC to 2011-04-11 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2011-04-11 00:00:00 UTC to 2011-04-18 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2011-04-18 00:00:00 UTC to 2011-04-25 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2011-04-25 00:00:00 UTC to 2011-05-02 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2011-05-02 00:00:00 UTC to 2011-05-09 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsMay 22011-05-09 00:00:00 UTC to 2011-05-16 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2011-05-16 00:00:00 UTC to 2011-05-23 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2011-05-23 00:00:00 UTC to 2011-05-30 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2011-05-30 00:00:00 UTC to 2011-06-06 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2011-06-06 00:00:00 UTC to 2011-06-13 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2011-06-13 00:00:00 UTC to 2011-06-20 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2011-06-20 00:00:00 UTC to 2011-06-27 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2011-06-27 00:00:00 UTC to 2011-07-04 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2011-07-04 00:00:00 UTC to 2011-07-11 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2011-07-11 00:00:00 UTC to 2011-07-18 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2011-07-18 00:00:00 UTC to 2011-07-25 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2011-07-25 00:00:00 UTC to 2011-08-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsJul 25

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Feb 142011-02-14 00:00:00 UTC2011-02-21 00:00:00 UTC101
Feb 212011-02-21 00:00:00 UTC2011-02-28 00:00:00 UTC000
Feb 282011-02-28 00:00:00 UTC2011-03-07 00:00:00 UTC000
Mar 72011-03-07 00:00:00 UTC2011-03-14 00:00:00 UTC000
Mar 142011-03-14 00:00:00 UTC2011-03-21 00:00:00 UTC000
Mar 212011-03-21 00:00:00 UTC2011-03-28 00:00:00 UTC000
Mar 282011-03-28 00:00:00 UTC2011-04-04 00:00:00 UTC000
Apr 42011-04-04 00:00:00 UTC2011-04-11 00:00:00 UTC101
Apr 112011-04-11 00:00:00 UTC2011-04-18 00:00:00 UTC000
Apr 182011-04-18 00:00:00 UTC2011-04-25 00:00:00 UTC000
Apr 252011-04-25 00:00:00 UTC2011-05-02 00:00:00 UTC000
May 22011-05-02 00:00:00 UTC2011-05-09 00:00:00 UTC101
May 92011-05-09 00:00:00 UTC2011-05-16 00:00:00 UTC202
May 162011-05-16 00:00:00 UTC2011-05-23 00:00:00 UTC000
May 232011-05-23 00:00:00 UTC2011-05-30 00:00:00 UTC000
May 302011-05-30 00:00:00 UTC2011-06-06 00:00:00 UTC000
Jun 62011-06-06 00:00:00 UTC2011-06-13 00:00:00 UTC000
Jun 132011-06-13 00:00:00 UTC2011-06-20 00:00:00 UTC000
Jun 202011-06-20 00:00:00 UTC2011-06-27 00:00:00 UTC000
Jun 272011-06-27 00:00:00 UTC2011-07-04 00:00:00 UTC000
Jul 42011-07-04 00:00:00 UTC2011-07-11 00:00:00 UTC000
Jul 112011-07-11 00:00:00 UTC2011-07-18 00:00:00 UTC000
Jul 182011-07-18 00:00:00 UTC2011-07-25 00:00:00 UTC000
Jul 252011-07-25 00:00:00 UTC2011-08-01 00:00:00 UTC101

What Hacker News says

6 sources
How is a gateway that reads, buffers, and parses HTTP headers into an environment object [1] before turning it over to your "raw wsgi application" not protecting it from HTTP? WSGI protects you from HTTP. CGI protects you from HTTP. mod_python and mod_perl protect you from HTTP. If you're unable to read and parse the complete HTTP request yourself -- perhaps incrementally, there's an idea -- you're protected from HTTP. Something is imposing policy like how many headers to accept, what the longest header should be, how to fold multiple headers with the same field-name, that it's okay to consume memory buffering all the headers, and so on. In my ideal world, a web app server has access to the full HTTP request stream, calls an incremental HTTP parser [2] [3], and does whatever it wants along the way. If the typical use case is to accumulate
Read the rest
a full request object and call a handler, fine, that can be made convenient. But the web app gets to decide. Perhaps my issue is not with frameworks (in the sense of Django, Ruby, etc), but with web servers. Except, I view the infrastructure for hosting a web app inside a web server as yet another framework. The common use case is optimized for at the expense of the less common use cases, which become more painful than they should be. Or sometimes outright impossible. TL;DR -- Libraries over frameworks. In Soviet Framework Russia, you don't call code...code call YOU. [1] http://www.python.org/dev/peps/pep-0333/#environ-variables [2] https://github.com/ry/http-parser [3] https://github.com/mongrel/mongrel/tree/master/ext/http11
In Show HN: Pump, a dead simple Pythonic abstraction of HTTP.
In src/webserver/Webserver.Incoming.cc you have an ad-hoc HTTP parser that internally buffers partial request data and does some questionable things like recursing on each request header line. Consider using a finite state machine parser for HTTP like this one [1] or this one [2], which will reduce your overhead, and help you push the buffering and eof problems back up to the main event loop code. [1] https://github.com/ry/http-parser [2] https://github.com/mongrel/mongrel/tree/master/ext/http11
In Show HN: My embeddable C/C++ webserver

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.