Skip to content

Releases: adafruit/Adafruit_CircuitPython_HTTPServer

3.0.1 - Fix For Potential Infinite Loop

24 Apr 14:38
0850aba
Compare
Choose a tag to compare

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

24 Apr 14:33
c2e832a
Compare
Choose a tag to compare

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

19 Apr 17:02
a8b68f1
Compare
Choose a tag to compare

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

03 Apr 15:30
fee4570
Compare
Choose a tag to compare

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

28 Feb 17:43
c1a47ab
Compare
Choose a tag to compare

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()

06 Feb 21:35
874d3ed
Compare
Choose a tag to compare

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

06 Feb 21:07
e349088
Compare
Choose a tag to compare

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

12 Jan 00:21
90c2801
Compare
Choose a tag to compare

What's Changed

  • Allow sending raw bytes in the response by @deshipu in #35

New Contributors

Full Changelog: 2.0.0...2.1.0

2.0.0 - case insensitive headers and other changes

02 Jan 18:45
e4a7e0e
Compare
Choose a tag to compare

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)

27 Dec 19:19
5de66fa
Compare
Choose a tag to compare

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.