reverse_proxy¶
Classes
ReverseProxy (*args, **kwargs) |
Represents the remote reverse proxy. |
-
class
remoteappmanager.services.reverse_proxy.
ReverseProxy
(*args, **kwargs)[source]¶ Bases:
remoteappmanager.logging.logging_mixin.LoggingMixin
,traitlets.traitlets.HasTraits
Represents the remote reverse proxy. It is meant to have a high level API.
Initializes the reverse proxy connection object.
-
api_token
= Unicode¶ The authorization API token to authenticate the request
a unicode string
-
endpoint_url
= Unicode¶ The endpoint url at which the reverse proxy has its api
a unicode string
-
register
(urlpath, target_host_url)[source]¶ Register a given urlpath to redirect to a different target host. The operation is idempotent.
Parameters: - urlpath (str) – The absolute path of the url (e.g. /my/internal/service/)”
- target_host_url – The host to redirect to, e.g. http://127.0.0.1:31233/service/
-