x2gobroker.web.plain module¶
- class x2gobroker.web.plain.X2GoBrokerWeb(application: Application, request: HTTPServerRequest, **kwargs: Any)[source]¶
Bases:
_RequestHandler
HTTP request handler that provides the plain text web frontend of the X2Go Session Broker.
Currently, X2Go Client uses this webfrontend / communication protocol format.
- Raises:
tornado.web.HTTPError – on authentication failure a 401 error is raised
- get(path)[source]¶
Implementation of the plain text broker communication protocol as used by X2Go Client (via POST requests).
In debug mode you can test the broker’s functionality using a normal web browser via GET requests.
- Parameters:
path (
str
) – URL path
- http_header_items = {'Content-Type': 'text/plain; charset=utf-8', 'Expires': '+1h'}¶