x2gobroker.web.json module¶
-
class
x2gobroker.web.json.
X2GoBrokerWeb
(application, request, **kwargs)[source]¶ Bases:
x2gobroker.web.json._RequestHandler
HTTP request handler that provides the JSON web frontend of the X2Go Session Broker.
Currently, Python X2Go and all derived X2Go Client applications use this web frontend / communication protocol format..
Raises: tornado.web.HTTPError – on authentication failure a 401 error is raised -
get
(path)[source]¶ Implementation of the JSON based broker communication protocol as used by Python X2Go (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/json; charset=utf-8', 'Expires': '+1h'}¶
-