Belyalov Tinyweb Versions Save

Simple and lightweight HTTP async server for micropython

v1.3.5

4 years ago

Firmware

Now based on micropython 1.12

Bug fixes

#24 - Unexpectedly closed connection on non existing URLs (404)

v1.3.4

4 years ago

Fixes

  • #20: Properly handle UTF strings restful_resource_handler()

v1.3.3

5 years ago

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

v1.3.2

5 years ago

Release images

#18 - This release fixes broken travis script which result in broken release images for esp32 / esp8266

v1.3.1

5 years ago

@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 https://github.com/micropython/micropython/commit/4737ff8054e84b3ccd1e7364d773a8c1d14095f5 which contains bugfix for TCP listen/accept backlog

v1.3

5 years ago

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

v1.2.3

5 years ago

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.

v1.2.2

5 years ago

Now based on top of micropython v1.9.4. release.

  • Added debug. When set - unhandled exception data will be propogated to client as well.

v1.2.1

6 years ago

Minor release aimed to fix bug with max_concurrency and refactor implementation of request_timeout.

v1.2

6 years ago

New Features

  • Limit concurrently opened connections (max_concurrency param)
  • Close connections by timeout (request_timeout param)

Enhancements

  • Allow REST handler to return simple string (converting from dict to json sometimes too expensive)

Bugfixes

  • Properly handle connection errors (ECONNREST, ECONNABORT, etc)

Misc

  • Replace old styled yield from to async / await