Giter Site home page Giter Site logo

code structure about espasyncwebserver HOT 5 CLOSED

me-no-dev avatar me-no-dev commented on June 23, 2024
code structure

from espasyncwebserver.

Comments (5)

me-no-dev avatar me-no-dev commented on June 23, 2024

AsyncWebServerHandlerImpl keeps all implementations of the AsyncWebHandler (thus the name) the cpp file has their source. It should not be needed for inclusion unless you extend one of the classes there. They all look to the server as AsyncWebResponse and the server treats them as such (like Print implementations)

from espasyncwebserver.

andig avatar andig commented on June 23, 2024

AsyncWebServerHandlerImpl keeps all implementations of the AsyncWebHandler

I found it confusing as part (and only part, e.g. not the constructor) of the AsyncStaticWebHandler implementation in turn is in WebHandlers.cpp. Also those are the only two files prefixed with Async.

But definitely a minor thing, please feel free to close.

from espasyncwebserver.

me-no-dev avatar me-no-dev commented on June 23, 2024

all headers have Async in their name (apart from the StringArray). Source files do not because they can not be mixed up with other source files (you include the headers and not the source) :)
Some names will probably change in a very near future :) @sticilface has done some major work to make ArduinoJson async as well :)

from espasyncwebserver.

andig avatar andig commented on June 23, 2024

Fixed by 40d5d44 I would say- thank you!

from espasyncwebserver.

me-no-dev avatar me-no-dev commented on June 23, 2024

:)

from espasyncwebserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.