univention.admin.rest.server package#
- class univention.admin.rest.server.Gateway(application: Application, request: HTTPServerRequest, **kwargs: Any)[source]#
Bases:
RequestHandlerA server which acts as proxy to multiple processes in different languages
TODO: Implement authentication via PAM TODO: Implement ACL handling (restriction on certain paths for certain users/groups) TODO: Implement a SAML service provider TODO: Implement management of modules
- child_id = None#
- PROCESSES = {}#
- SOCKETS = {}#
- set_default_headers()[source]#
Override this to set HTTP headers at the beginning of the request.
For example, this is the place to set a custom
Serverheader. Note that setting such headers in the normal flow of request processing may not do what you want, since headers may be reset during error handling.
- prepare()[source]#
Called at the beginning of a request before get/post/etc.
Override this method to perform common initialization regardless of the request method.
Asynchronous support: Use
async defor decorate this method with .gen.coroutine to make it asynchronous. If this method returns anAwaitableexecution will not proceed until theAwaitableis done.Added in version 3.1: Asynchronous support.
- post()#
- put()#
- delete()#
- patch()#
- options()#