pub struct GholaHttpClient { /* private fields */ }Expand description
HTTP client that forwards requests to the Ghola sidecar bridge
running on 127.0.0.1:18789. When stealth is true, the bridge
applies temporal drift and ghost signing to every request.
Implementations§
Source§impl GholaHttpClient
impl GholaHttpClient
Sourcepub fn new(stealth: bool, buffer_size: u32) -> Result<Self, ScopeError>
pub fn new(stealth: bool, buffer_size: u32) -> Result<Self, ScopeError>
Creates a new client that talks to an already-running sidecar.
Sourcepub async fn ensure_ready(
stealth: bool,
buffer_size: u32,
) -> Result<Self, ScopeError>
pub async fn ensure_ready( stealth: bool, buffer_size: u32, ) -> Result<Self, ScopeError>
Ensures the sidecar is reachable. If not, spawns ghola --serve
and waits for it to become ready. Returns a configured client.
Trait Implementations§
Source§impl HttpClient for GholaHttpClient
impl HttpClient for GholaHttpClient
Auto Trait Implementations§
impl !RefUnwindSafe for GholaHttpClient
impl !UnwindSafe for GholaHttpClient
impl Freeze for GholaHttpClient
impl Send for GholaHttpClient
impl Sync for GholaHttpClient
impl Unpin for GholaHttpClient
impl UnsafeUnpin for GholaHttpClient
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