Releases: adafruit/Adafruit_CircuitPython_HTTPServer
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.
2.4.0 - URL Path Parameter
This release contains new functionality allowing parameters within your URL path that get passed to the serving function as arguments. 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.
Updated MDNS example reference in ReadTheDocs
Updated MDNS example reference in ReadTheDocs. Thanks @foxy82!
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.3.0 - Buffer Size Argument for send_file()
This release adds a buffer_size argument to send_file()
function and equalizes the default buffer size used by server and response classes so they are the same. Thank you @matemaciek
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.2.0 - Automatically Serve index.html From Root
This release contains new behavior that will automatically serve index.html
if the user sends a request to the base URL without specifying a file.
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.1.0 - Allow sending binary data as well as text; performance improvements
2.0.0 - case insensitive headers and other changes
What's Changed
- Case insensitive HTTPHeaders, HTTPResponse context manager and some fixes by @michalpokusa in #29
Thanks to all the contributors and reviewers of the chanages for this release.
Full Changelog: 1.1.0...2.0.0
1.1.0 - Added a few features (see #22)
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.