pub struct IpcHttpClient { /* private fields */ }Expand description
Generic IPC HTTP client that works on both Unix and Windows platforms
This client is optimized for request-response patterns with connection pooling support.
For streaming functionality, use IpcStreamClient instead.
Implementations§
Source§impl IpcHttpClient
impl IpcHttpClient
Sourcepub fn with_config<P>(path: P, config: ClientConfig) -> Result<Self>
pub fn with_config<P>(path: P, config: ClientConfig) -> Result<Self>
Create a new IPC HTTP client with custom configuration
Sourcepub async fn request(
&self,
method: &str,
path: &str,
body: Option<&Value>,
) -> AnyResult<LegacyResponse>
pub async fn request( &self, method: &str, path: &str, body: Option<&Value>, ) -> AnyResult<LegacyResponse>
Legacy request method for backward compatibility
Sourcepub fn get(&self, path: &str) -> HttpRequestBuilder<'_>
pub fn get(&self, path: &str) -> HttpRequestBuilder<'_>
GET request
Sourcepub fn post(&self, path: &str) -> HttpRequestBuilder<'_>
pub fn post(&self, path: &str) -> HttpRequestBuilder<'_>
POST request
Sourcepub fn put(&self, path: &str) -> HttpRequestBuilder<'_>
pub fn put(&self, path: &str) -> HttpRequestBuilder<'_>
PUT request with optimization enabled by default
Sourcepub async fn put_batch(
&self,
requests: Vec<(String, Value)>,
) -> Result<Vec<HttpResponse>>
pub async fn put_batch( &self, requests: Vec<(String, Value)>, ) -> Result<Vec<HttpResponse>>
Optimized batch PUT operations
Sourcepub fn delete(&self, path: &str) -> HttpRequestBuilder<'_>
pub fn delete(&self, path: &str) -> HttpRequestBuilder<'_>
DELETE request
Sourcepub fn patch(&self, path: &str) -> HttpRequestBuilder<'_>
pub fn patch(&self, path: &str) -> HttpRequestBuilder<'_>
PATCH request
Sourcepub fn head(&self, path: &str) -> HttpRequestBuilder<'_>
pub fn head(&self, path: &str) -> HttpRequestBuilder<'_>
HEAD request
Sourcepub fn options(&self, path: &str) -> HttpRequestBuilder<'_>
pub fn options(&self, path: &str) -> HttpRequestBuilder<'_>
OPTIONS request
Sourcepub fn pool_stats(&self) -> Option<PoolStats>
pub fn pool_stats(&self) -> Option<PoolStats>
Get pool statistics (if pooling is enabled)
Sourcepub async fn preheat_for_puts(&self, count: usize)
pub async fn preheat_for_puts(&self, count: usize)
Preheat connections for better PUT performance
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IpcHttpClient
impl !RefUnwindSafe for IpcHttpClient
impl Send for IpcHttpClient
impl Sync for IpcHttpClient
impl Unpin for IpcHttpClient
impl UnsafeUnpin for IpcHttpClient
impl !UnwindSafe for IpcHttpClient
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