pub struct HttpProxy { /* private fields */ }Expand description
A storage backend driver to access blobs through a http proxy server.
The http proxy server may be local (using unix socket) or be remote (using http:// or https://).
HttpProxy uses two API endpoints to access the blobs:
HEAD /path/to/blobto get the blob sizeGET /path/to/blobto read the blob
The http proxy server should respect the Range header to support range reading.
Implementations§
Trait Implementations§
Source§impl BlobBackend for HttpProxy
impl BlobBackend for HttpProxy
Source§fn metrics(&self) -> &BackendMetrics
fn metrics(&self) -> &BackendMetrics
Get metrics object.
Source§fn get_reader(&self, blob_id: &str) -> BackendResult<Arc<dyn BlobReader>>
fn get_reader(&self, blob_id: &str) -> BackendResult<Arc<dyn BlobReader>>
Get a blob reader object to access blob
blob_id.Auto Trait Implementations§
impl Freeze for HttpProxy
impl !RefUnwindSafe for HttpProxy
impl Send for HttpProxy
impl Sync for HttpProxy
impl Unpin for HttpProxy
impl UnsafeUnpin for HttpProxy
impl !UnwindSafe for HttpProxy
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