pub struct EndpointManager { /* private fields */ }Expand description
Manages PostHog API endpoints and host configuration
Implementations§
Source§impl EndpointManager
impl EndpointManager
Sourcepub fn determine_server_host(host: Option<String>) -> String
pub fn determine_server_host(host: Option<String>) -> String
Determine the actual server host based on the provided host Similar to posthog-python’s determine_server_host function
Sourcepub fn raw_host(&self) -> &str
pub fn raw_host(&self) -> &str
Get the raw host (as provided by the user, used for session replay URLs)
Sourcepub fn build_custom_url(&self, path: &str) -> String
pub fn build_custom_url(&self, path: &str) -> String
Build a URL with a custom path
Sourcepub fn build_local_eval_url(&self, token: &str) -> String
pub fn build_local_eval_url(&self, token: &str) -> String
Build the local evaluation URL with a token
Trait Implementations§
Source§impl Clone for EndpointManager
impl Clone for EndpointManager
Source§fn clone(&self) -> EndpointManager
fn clone(&self) -> EndpointManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EndpointManager
impl RefUnwindSafe for EndpointManager
impl Send for EndpointManager
impl Sync for EndpointManager
impl Unpin for EndpointManager
impl UnwindSafe for EndpointManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more