llhttp
microdot
llhttp | microdot | |
---|---|---|
7 | 11 | |
1,586 | 1,361 | |
0.6% | - | |
8.7 | 8.2 | |
6 days ago | 10 days ago | |
TypeScript | Python | |
GNU General Public License v3.0 or later | 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.
llhttp
-
Notes: Advanced Node.js Concepts by Stephen Grider
In the source code of the Node.js opensource project, lib folder contains JavaScript code, mostly wrappers over C++ and function definitions. On the contrary, src folder contains C++ implementations of the functions, which pulls dependencies from the V8 project, the libuv project, the zlib project, the llhttp project, and many more - which are all placed at the deps folder.
-
Rest server for embedded system
Some useful libraries include nghttp2 for HTTP/2 and llhttp for HTTP/1.1. Both are network stack and TLS implementation agnostic.
-
Does nodejs intercept http request natively or does it use something to understand http request like wsgi in python ?
There is a HTTP parser directly bundled in node (https://github.com/nodejs/llhttp)
-
Fetch API has landed into Node.js
Those wasm blobs are Node's own llhttp https://github.com/nodejs/llhttp in wasm to speed up HTTP parsing.
The question is totally legitimate but please assume core doesn't make "load random binary" level kind of goofs :)
-
Book recommendations for Backend development concepts for a beginner
For HTTP, you have to look at HTTP parser. For example, https://github.com/nodejs/llhttp is used in NodeJS.
-
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
-
Show HN: Micro HTTP server in 22 lines of C
No, parsing HTTP/1.x is a nightmare and definitely not simple. It wasn't even particularly well defined until 2014 when the original RFCs were modernized, and even now there are bugs reported in HTTP parsers all the time.
Node.js came out in 2009, a full ten years after HTTP/1.1 (RFC 2068) and it's original http-parser is full-on spaghetti code, doesn't conform to the RFCs for performance reasons, and is considered unmaintainable by the author of it's replacement[0]
[0] https://github.com/nodejs/llhttp
microdot
-
Microdot: A Web Framework for Microcontrollers
Presumably "anything that micropython (or circuitpython) does" which is vast range. https://github.com/miguelgrinberg/microdot/tree/main/src/mic... is just python code...
- Microdot "The impossibly small web framework for Python and MicroPython"
-
Rest server for embedded system
You could make life easy for yourself and ditch C++ for micropython and https://github.com/miguelgrinberg/microdot :-D
-
an alternative to flask for micropython ?
Never tried this but seems pretty similar to flask
- microdot – The impossibly small web framework for Python and MicroPython
-
Pico W webserver framework, remote MicroPython execution (REPL) interface
cool project. I saw this one posted recently, and think it'd be funny to setup a webserver using microdot via your pico-fi interface.
- GitHub - miguelgrinberg/microdot: The impossibly small web framework for Python and MicroPython.
- Microdot: The impossibly small web framework for Python and MicroPython
-
REST service?
I use Micropython not CircuitPython and am not familiar with AirLift but I have been using Microdot with asyncio for a small ESP32 REST + web server and it works fantastically. Not sure if it runs on CircuitPython.
-
HTTP Server that will work on both MicroPython (ESP32) and Unix (Darwin/CPython)?
We use Microdot; it runs on MicroPython - on hardware and in the unix port (including the docker container) and also runs under CPython.
What are some alternatives?
HTTP Parser - http request/response parser for c
MicroWebSrv2 - The last Micro Web Server for IoTs (MicroPython) or large servers (CPython), that supports WebSockets, routes, template engine and with really optimized architecture (mem allocations, async I/Os). Ready for ESP32, STM32 on Pyboard, Pycom's chipsets (WiPy, LoPy, ...). Robust, efficient and documented!
http-proxy - A full-featured http proxy for node.js
picoweb - Really minimal web application framework for the Pycopy project (minimalist Python dialect) and its "uasyncio" async framework
ioccc - My IOCCC submissions and practice.
micropython-nanoweb - Full async Micropython web server with small memory footprint.
ultra - An ultra-small, ultra-fast, web server.
Adafruit_CircuitPython_HTTPServer - Simple HTTP Server for CircuitPython
µWebSockets - Simple, secure & standards compliant web server for the most demanding of applications
ampule - A tiny HTTP server made for CircuitPython WiFi devices (like the ESP32)
fetch - Fetch Standard
easyhttp - 👩💻 Simple Python HTTP server