HTTP Parser
gopher-plus
Our great sponsors
HTTP Parser | gopher-plus | |
---|---|---|
8 | 3 | |
6,115 | 8 | |
- | - | |
0.0 | 4.9 | |
almost 2 years ago | about 3 years ago | |
C | ||
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
HTTP Parser
-
eBPF will help solve service mesh by getting rid of sidecars
It looks not too different 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....
-
C in Web Dev
NodeJS's HTTP parser used to be a handwritten C lib: http-parser
-
The history and reasons behind CORS, and how to use it
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 of Hyper, a Rust library https://github.com/hyperium/hyper
-
A Universal I/O Abstraction for C++ (2020)
Boost.Beast has its own HTTP parser[0], during the development of which Vinnie Falco (the principle author of Beast) found many bugs/inconsistencies in Node.js's own parser[1]
[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...
-
How to pass ownership of std::function object to function pointer?
For cases where it is necessary to pass local information to/from a callback, the http_parser object's data field can be used.
-
Plain Text Protocols
Legacy HTTP/1.1 suffers a few issues, see the current RFC errata:
https://www.rfc-editor.org/errata_search.php?rfc=7230&rec_st...
There are issues particularly around how whitespace and obsolete line folding should be handled
https://github.com/nodejs/http-parser/issues?q=is%3Aissue+wh...
https://github.com/httpwg/http-core/issues/53
It's not as trivial as a few string splits.
-
Looking for good http parser in C++ or C
There's picohttpparser and the one used in node.js: https://github.com/nodejs/http-parser
gopher-plus
-
The Old Internet Shows Signs of Quietly Coming Back
Shameless plug: I recently wrote a gopher client library for Deno, just for fun. https://github.com/matt1/deno-gopher
I also cleaned-up the weird formatting of the Gopher+ protocol and put it on github as a formatted markdown file since it was never and official RFC so trawling through an unstructured txt file when trying to implement the protocol was a pain: https://github.com/gopher-protocol/gopher-plus
Hope it is useful for someone implementing new gopher code like I was! :)
-
Lagrange: A Beautiful Gemini Client
I think it is a bit of a chicken and an egg problem. There are a few Gopher+ servers out there, and the Gopher+ protocol is pretty flexible and designed with the metaverse in mind originally (see GopherVR from the original authors).
It is a shame that a lot of current Gopher users seem to be strongly against anything apart from standard Gopher, when the original authors of the protocol had much grander ideas for interactivity & visual interfaces. Sigh.
For anyone interested, the Gopher+ protocol doc never made it to a proper RFC, but is on github in a hyper-linked format to make it easier to read: https://github.com/gopher-protocol/gopher-plus/blob/main/gop...
https://github.com/gopher-protocol/gopher-plus/blob/main/gop... specifically mentions 3D representations of Gopherspace.
- Plain Text Protocols
What are some alternatives?
llhttp - Port of http_parser to llparse
lagrange - A Beautiful Gemini Client
C++ Format - A modern formatting library
syme - White paper for Syme, a zero-knowledge key architecture and encrypted messaging platform
American Fuzzy Lop - american fuzzy lop - a security-oriented fuzzer
cantordust - Public repository for Cantordust Ghidra plugin.
semver.c - Semantic version in ANSI C
go-gopher - The Go Gopher Amigurumi Pattern
PHP CPP - Library to build PHP extensions with C++
whitepaper - Whitepaper for the web3 cloud.
stb - stb single-file public domain libraries for C/C++
unnamed-gopher-client - A modern Gopher client for 2020