Skip to content
Snippets Groups Projects
Commit ce6131b6 authored by Krzysztof Mochocki's avatar Krzysztof Mochocki
Browse files

Add http_endpoint to Beekeeper interface

parent 8356d3b9
No related branches found
No related tags found
1 merge request!73Clive integration related fixes
......@@ -22,6 +22,10 @@ class Beekeeper(ContextAsync["Beekeeper"], ContextSettingsUpdater[CommunicationS
"""Returns read-only settings."""
return cast(Settings, self._get_copy_of_settings())
@property
def http_endpoint(self) -> HttpUrl:
return self.settings.ensured_http_endpoint
@property
@abstractmethod
async def session(self) -> Session: ...
......
......@@ -22,6 +22,10 @@ class Beekeeper(ContextSync["Beekeeper"], ContextSettingsUpdater[CommunicationSe
"""Returns read-only settings."""
return cast(Settings, self._get_copy_of_settings())
@property
def http_endpoint(self) -> HttpUrl:
return self.settings.ensured_http_endpoint
@property
@abstractmethod
def session(self) -> Session: ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment