handler
HTTP request handler for Pipeworks webapp endpoints.
The handler intentionally focuses on transport concerns:
request logging policy
JSON/text response helpers
one-time schema bootstrap guard
GET/POST dispatch through route registries
Route-specific behavior lives in endpoint_adapters.py and routes/*.
Classes
HTTP request handler for the tabbed web UI and JSON API. |
Module Contents
- class handler.WebAppHandler(request, client_address, server)
Bases:
http.server.BaseHTTPRequestHandlerHTTP request handler for the tabbed web UI and JSON API.
Class attributes
verboseanddb_pathare injected at startup bypipeworks_name_generation.webapp.server.create_handler_class().- db_path: pathlib.Path
- favorites_db_path: pathlib.Path
- db_export_path: pathlib.Path | None = None
- db_backup_path: pathlib.Path | None = None
- log_message(format, *args)
Emit request logs only when verbose mode is enabled.
- do_GET()
Handle all supported
GETroutes.
- do_POST()
Handle all supported
POSTroutes.