MCPcopy Create free account
hub / github.com/adafruit/Adafruit_CircuitPython_HTTPServer / base

Function base

examples/httpserver_cpython.py:14–18  ·  view source on GitHub ↗

Serve a default static plain text message.

(request: Request)

Source from the content-addressed store, hash-verified

12
13@server.route("/")
14def base(request: Request):
15 """
16 Serve a default static plain text message.
17 """
18 return Response(request, "Hello from the CircuitPython HTTP Server!")
19
20
21# Ports below 1024 are reserved for root user only.

Callers

nothing calls this directly

Calls 1

ResponseClass · 0.90

Tested by

no test coverage detected