web workflow: uses an mdns port service slot

This commit is contained in:
anecdata 2023-07-12 23:24:33 -05:00 committed by GitHub
parent efd4fffea6
commit bd2072123a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,6 +94,10 @@ MDNS is used to resolve [`circuitpython.local`](http://circuitpython.local) to a
hostname of the form `cpy-XXXXXX.local`. The `XXXXXX` is based on network MAC address. The device hostname of the form `cpy-XXXXXX.local`. The `XXXXXX` is based on network MAC address. The device
also provides the MDNS service with service type `_circuitpython` and protocol `_tcp`. also provides the MDNS service with service type `_circuitpython` and protocol `_tcp`.
Since port 80 (or the port assigned to `CIRCUITPY_WEB_API_PORT`) is used for MDNS, the `mdns`
[module](https://docs.circuitpython.org/en/latest/shared-bindings/mdns/index.html#mdns.Server.advertise_service)
can't also advertise a service on that port.
### HTTP ### HTTP
The web server is HTTP 1.1 and may use chunked responses so that it doesn't need to precompute The web server is HTTP 1.1 and may use chunked responses so that it doesn't need to precompute
content length. content length.