Skip to content

Releases: adafruit/Adafruit_CircuitPython_HTTPServer

4.3.0- XSS Hardening

22 Aug 22:47
be65668
Compare
Choose a tag to compare

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

31 Jul 16:48
83ea10d
Compare
Choose a tag to compare

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

17 Jul 15:38
e0b2ba9
Compare
Choose a tag to compare

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

30 May 00:57
8165933
Compare
Choose a tag to compare

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

26 May 16:15
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.

4.0.0 - New Features Breaking Change

22 May 20:38
2e205dc
Compare
Choose a tag to compare

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

25 Apr 22:23
6df991b
Compare
Choose a tag to compare

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

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.