Releases: belyalov/tinyweb
Release 1.3.5
Release 1.3.4
Fixes
- #20: Properly handle UTF strings restful_resource_handler()
Release 1.3.3
Frozen examples
Include examples into release firmware - in order to simplify flash-n-try, flash image and simply run example:
>>> import network
# Connect to WiFi
>>> sta_if = network.WLAN(network.STA_IF)
>>> sta_if.active(True)
>>> sta_if.connect('<ssid>', '<password>')
# Run Hello World! :)
>>> import examples.hello_world as hello
>>> hello.run()Release 1.3.2
Release images
#18 - This release fixes broken travis script which result in broken release images for esp32 / esp8266
Release 1.3.1
@resource decorator:
@app.resource('/user/<id>')
def user(data, id):
return {'id': id, 'name': 'foo'}
TCP listen/accept backlog bugfix
Now binaries for esp8266 based on micropython/micropython@4737ff8 which contains bugfix for TCP listen/accept backlog
Release 1.3
Optimizations
- Get rid of get_mime_type() - mostly useless, however, consumes a lot of memory.
- Get rid of debug messages.
- Do not use names for HTTP codes.
- Minor code cleanup
Chunked encoding
Since HTTP/1.0 does not support Transfer-Encoding: chunked - workaround added: use HTTP/1.1 with Connection: close
Per-connection statistic
Simple counter for processed connections added
Release 1.2.3
Better logging
In order to unify logging mechanism now tinyweb is using logging instead of pure print().
WARNING this may break your app! Consider use of logging module.
P.S. New image already contains logging module frozen.
Release 1.2.2
Now based on top of micropython v1.9.4. release.
- Added
debug. When set - unhandled exception data will be propogated to client as well.
Release 1.2.1
Minor release aimed to fix bug with max_concurrency and refactor implementation of request_timeout.
Release 1.2
New Features
- Limit concurrently opened connections (
max_concurrencyparam) - Close connections by timeout (
request_timeoutparam)
Enhancements
- Allow REST handler to return simple string (converting from
dicttojsonsometimes too expensive)
Bugfixes
- Properly handle connection errors (
ECONNREST,ECONNABORT, etc)
Misc
- Replace old styled
yield fromtoasync / await