Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AsyncWebServer official integration #8376

Open
1 task done
guestisp opened this issue Jul 2, 2023 · 8 comments
Open
1 task done

AsyncWebServer official integration #8376

guestisp opened this issue Jul 2, 2023 · 8 comments
Labels
Type: Feature request Feature request for Arduino ESP32

Comments

@guestisp
Copy link

guestisp commented Jul 2, 2023

Related area

WiFi

Hardware specification

DevKit

Is your feature request related to a problem?

no

Describe the solution you'd like

Any chanche to have the ESPAsyncWebServer ported officially in the main repo ?
That project seems to be dead, but the main developer is very active here.

Why not porting it officially ?

Describe alternatives you've considered

No response

Additional context

No response

I have checked existing list of Feature requests and the Contribution Guide

  • I confirm I have checked existing list of Feature requests and Contribution Guide.
@guestisp guestisp added the Type: Feature request Feature request for Arduino ESP32 label Jul 2, 2023
@lbernstone
Copy link
Contributor

A rewrite of WebServer based on esp_http(s)_server would not be a bad thing to put on the milestone list.

@me-no-dev
Copy link
Member

AsyncTCP might make it to the repo, but the server will likely stay separate (though I do plan to split it from ESP8266, because ESP32 and FreeRTOS require different approach).

Project is "dead" because I am very active here and this is actually my job. Will revive after Arduino 3.0.0 is out

@me-no-dev
Copy link
Member

A rewrite of WebServer based on esp_http(s)_server would not be a bad thing to put on the milestone list.

That is planned actually

@guestisp
Copy link
Author

guestisp commented Jul 2, 2023

AsyncTCP might make it to the repo, but the server will likely stay separate (though I do plan to split it from ESP8266, because ESP32 and FreeRTOS require different approach).

Project is "dead" because I am very active here and this is actually my job. Will revive after Arduino 3.0.0 is out

I understand, but at least some bug-fixing.. Features should wait, but there are some bugs that are very annoying (one over all, the queue size, there is a fork that adds support for chaning the queue size, that change should be merged)

@HamzaHajeir
Copy link
Contributor

I'm happy to invite you to use a library I maintain after the passage of its author about a year ago :.

Feel free to use it, it's H4AsyncWebServer.

Yet for TLS support you'll need to install a customized arduino core.

You can also check a complete H4Plugins environment here.

@guestisp
Copy link
Author

guestisp commented Jul 2, 2023

very very very interesting
i'll give it a try. do you know most frequent changes to do as drop in replacement of espasyncwebserver?

@HamzaHajeir
Copy link
Contributor

very very very interesting i'll give it a try. do you know most frequent changes to do as drop in replacement of espasyncwebserver?

Ah that would require some good changes, as it has a totally different design.

Basically it implies the usage of H4 Timer, it's a scheduler with good features, so requires to change your main code from void setup() {} .. void loop() to void h4setup(){} and void h4UserLoop(){}. More to know about within its docs.

Then you can check the webserver's examples, beside how H4Plugins starts it.

For request headers you can get them by calling req_headers() method out of the passed handler to the callback.

It's good to know that it currently lacks authentication, also it serves the file system automatically over the root (I might introduce a user API to allow overriding).

@horendus
Copy link

horendus commented Jul 17, 2023

I would be extremely grateful for an espAsyncWebServer update that adds full HTTPS support. To hear its on the roadmap is great news!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature request Feature request for Arduino ESP32
Projects
None yet
Development

No branches or pull requests

5 participants