igrr / esp32-http-server Goto Github PK
View Code? Open in Web Editor NEWToy HTTP server on top of LwIP netconn API, packaged as an ESP-IDF component
License: GNU General Public License v3.0
Toy HTTP server on top of LwIP netconn API, packaged as an ESP-IDF component
License: GNU General Public License v3.0
Any plans on implementing that?
http_handle_connection():
the call netbuf_delete(inbuf) must be moved inside the while loop:
while (ctx->state != HTTP_REQUEST_DONE) {
err = netconn_recv(conn, &inbuf);
if (err != ERR_OK) {
break;
}
err = netbuf_data(inbuf, (void**) &buf, &buflen);
if (err != ERR_OK) {
break;
}
size_t parsed_bytes = http_parser_execute(&ctx->parser, &parser_settings, buf, buflen);
netbuf_delete(inbuf);
if (parsed_bytes < buflen) {
break;
}
}
Hi,
taking a look at the files, I noticed that http_parser.h and http_parser.cpp are missing.
Called here: https://github.com/igrr/esp32-http-server/blob/master/http_server.c#L678
But doesn't seem to be defined anywhere. For that matter, http_parser.h also seems to be missing.
I'd like to POST WebCam image (M5 Camera) to another host.
It seems to possible to use http_response_begin_multipart() and http_response_end_multipart().
I want to know how to set distination host address....
I'm using a handler rule for a specific URI
ESP_ERROR_CHECK(http_register_handler(server, "/main.js", HTTP_GET, HTTP_HANDLE_RESPONSE, &cb_GET_file, "/spiflash/main.js"));
During the execution of my program there is a need to cancel the rule made above. How could I possibly do that?
Hi
as reported in object, it seems that header "http_parser.h" is not included.
regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.