Releases: adafruit/Adafruit_CircuitPython_HTTPServer
4.3.0- XSS Hardening
This release includes HTML entity escaping that is defaulted to enabled on data sent from the front end. This helps mitigate some of the potential for Cross Site Scripting.
To use in CircuitPython, simply install the Adafruit CircuitPython Bundle.
To use in CPython, pip3 install adafruit-circuitpython-HTTPServer
.
Read the docs for info on how to use it.
4.2.0 - Websockets, SSE, and Route Refactor
This release contains new features for:
- Websocket server handler capability
- Server Sent Event handler capability
- Route refactoring to make it easier to declare routes in seperate files
This release is backwards compatible. See #63 for the complete list of changes.
Thank you @michalpokusa.
To use in CircuitPython, simply install the Adafruit CircuitPython Bundle.
To use in CPython, pip3 install adafruit-circuitpython-HTTPServer
.
Read the docs for info on how to use it.
4.1.0 - FormData and More
This release includes the following:
- new feature to access FormData from requests
- new feature to set default headers to be returned with all responses
- Improvements to docstrings and examples
- new example illustrating usage with the ethernet Wiznet5k library.
Thank you @michalpokusa, @FoamyGuy, and @anecdata for their work to submit and test the changes.
To use in CircuitPython, simply install the Adafruit CircuitPython Bundle.
To use in CPython, pip3 install adafruit-circuitpython-HTTPServer
.
Read the docs for info on how to use it.
4.0.2 - Fixed packaging infrastructure
Fixed the packaging infrastructure of this library. Thanks @FoamyGuy!
To use in CircuitPython, simply install the Adafruit CircuitPython Bundle.
To use in CPython, pip3 install adafruit-circuitpython-HTTPServer
.
Read the docs for info on how to use it.
4.0.1 - Updated .pylintrc, fixed jQuery
To use in CircuitPython, simply install the Adafruit CircuitPython Bundle.
To use in CPython, pip3 install adafruit-circuitpython-HTTPServer
.
Read the docs for info on how to use it.
4.0.0 - New Features Breaking Change
This release contains breaking changes. User code will need to be updated in order to use this version of the library. A summary of changes include:
- Added support for basic and bearer authentication
- Refactored response API used in server route declarations
- Improved declaration of methods for server routes
- support for URL path parameters
- Refactored class names to remove redundant HTTP
- ChunkedResponse, FileResponse, JSONResponse, and Redirect object support
- Improved documentation and examples.
See: #54 for a full list of changes and modifications.
Thank you @michalpokusa for these improvements.
To use in CircuitPython, simply install the Adafruit CircuitPython Bundle.
To use in CPython, pip3 install adafruit-circuitpython-httpserver
.
Read the docs for info on how to use it.
3.0.2 - Simpletest Example
This release changes the name of the most basic example to include "simpletest" to match other libraries and simplifies it to return a string. Thank you @jrrickerson.
To use in CircuitPython, simply install the Adafruit CircuitPython Bundle.
To use in CPython, pip3 install adafruit-circuitpython-httpserver
.
Read the docs for info on how to use it.
3.0.1 - Fix For Potential Infinite Loop
This release contains a fix for a potential infinite loop when multiple requests are sent to the server too quickly.
Thank you @foxy82 for this fix!
To use in CircuitPython, simply install the Adafruit CircuitPython Bundle.
To use in CPython, pip3 install adafruit-circuitpython-httpserver
.
Read the docs for info on how to use it.
3.0.0 - Improved Security For Static Files
This release adds additional restrictions around static files that the library will serve. There is a new required positional argument root_path
when initializing the server. The server will not serve static files outside of that directory by default. So for instance if you set root_path
to "/static"
as the examples do then the server will not serve files located in the root directory.
Existing projects using this library will need to update the initialization within their code to include the new argument in order to run with the new version of this library.
Thank you @michalpokusa for these improvements.
To use in CircuitPython, simply install the Adafruit CircuitPython Bundle.
To use in CPython, pip3 install adafruit-circuitpython-httpserver
.
Read the docs for info on how to use it.
2.5.0 - Static file serving without the need for routes
This release contains new functionality for routeless static file serving, including HEAD
requests.
Thank you @Neradoc
To use in CircuitPython, simply install the Adafruit CircuitPython Bundle.
To use in CPython, pip3 install adafruit-circuitpython-httpserver
.
Read the docs for info on how to use it.