Session
Handle the http sessions that the daemon issues to the backend.
- USER_AGENT = 'clad/0.5.1'
Define the custom user agent for clad
- get_session(config)[source]
Retrieve a Session object with SSL capabilities.
We need to be extra careful here. If there is any cookies that identify the user/conversation, we will need to think about how to handle that in a multi-user scenario. Currently, we don’t have that implemented.
For now, we only mount the TLS information to the endpoint.
- Return type:
- Parameters:
config (Config) – Instance of the config class
- Returns:
A mounted session with the necessary adapters.
- Return type:
Session