Hacker GitHub

← All repos

nodejs/http-parser

View on GitHub ↗ ★ 6,437 C archived

http request/response parser for c

15 mentions on Hacker News by 10 people: 0 stories, 15 comments · first 2012-01-03 · latest 2021-12-09

Mentions per year 15 mentions · busiest year 2014 (4)
20082026
  1. …from the majority of HTTP parsers out there written in C. Here is an example of NodeJS [0]. [0] https://github.com/nodejs/http-parser/blob/main/http_parser....
  2. Whoa, I didn't know that! But yeah, it seems like https://github.com/nodejs/http-parser is based on nginx. It now uses https://github.com/nodejs/llhttp but has some of the same legacy. On the other hand, deno's HTTP stuff is built on top…
    comment by jaffathecake · 2021-10-15 · in How to win at CORS
  3. …on Node.js http-parser. [0] https://www.boost.org/doc/libs/develop/libs/beast/doc/html/b... [1] https://github.com/nodejs/http-parser/issues?q=is%3Aissue+au...
  4. …how whitespace and obsolete line folding should be handled Various whitespace issues in node.js: https://github.com/nodejs/http-parser/issues?q=is%3Aissue+wh... Spec clarification: https://github.com/httpwg/http-core/issues/53 Node.js's…
    comment by nly · 2021-02-25 · in Plain Text Protocols
  5. …that was extracted to a self-contained C file with associated headers and is a pleasure to use. [1] https://github.com/nodejs/http-parser
    comment by thamer · 2020-10-25 · in A small but complete JavaScript engine
  6. …for parsing and encoding of HTTP requests and responses (I don't know what there is for C/C++) https://github.com/nodejs/http-parser On the parser side, that's about as widely used/polished as you could hope to see.
    comment by erichocean · 2016-03-25 · in Silicon: C++14 web framework
  7. …actions being munged... which leaves you to design the top level state machine yourself. [0] https://github.com/joyent/http-parser/commit/5d9c3821729b194...
  8. maybe not entirely hand written? source[1] [1]: https://github.com/joyent/http-parser/blob/master/LICENSE-MI...
    comment by stock_toaster · 2014-04-22 · in Space Monkey dumps Python for Go
  9. …is written in C (originally pulled from nginx as I recall). Go's http parser is written in Go. [1]: https://github.com/joyent/http-parser
    comment by stock_toaster · 2014-04-22 · in Space Monkey dumps Python for Go
  10. …has worked for me, but its GPL and tends to break ABI quite a bit [3] [0] http://curl.haxx.se/ [1] https://github.com/joyent/http-parser [2] http://tatsuhiro-t.github.io/spdylay/ [3] https://polarssl.org/
    comment by nly · 2014-01-18 · in Chrome Is The New C Runtime
  11. …you start jumping around in your grammar, things become complicated fast (and impossible to debug.) https://github.com/joyent/http-parser/pull/156#issuecomment-...
    comment by jacobr · 2013-08-20 · in Node.js incorrectly parses HTTP methods
  12. Or at least they were looking at fixing it 8 months ago. https://github.com/joyent/http-parser/pull/145
  13. …nodejs started. I don't have access to the repo right now (GH is down) but here is the source: https://github.com/joyent/http-parser
    comment by zimbatm · 2013-05-12 · in HTTP as Imagined versus HTTP as Found
  14. …to do this, the HTTP protocol parser from node.js is really good, and deliberately easy to embed: https://github.com/joyent/http-parser
    comment by pjscott · 2012-08-03 · in Python 101: An Intro to logging
  15. …pretty C, makes it clear that Ryan Dahl cares a lot about HTTP in node doing the Right Thing. https://github.com/joyent/http-parser/blob/master/http_parse... (This is also very handy for people writing HTTP servers and clients in other…
    comment by pjscott · 2012-01-03 · in All Node.js servers are vulnerable to DoS