Skip to main content

HttpReleaseTransport

Struct HttpReleaseTransport 

Source
pub struct HttpReleaseTransport { /* private fields */ }
Expand description

Pure-std HTTP/1.1 release transport fetching signed manifests and range-resumable content-addressed blobs.

Implementations§

Source§

impl HttpReleaseTransport

Proxy accessor helpers on HttpReleaseTransport.

Source

pub fn proxy_url_str(&self) -> Option<&str>

Returns the optional explicit HTTP forward proxy URL.

§Arguments
  • &Self - Transport reference.
§Returns
  • Option<&str> - Forward proxy URL when configured.
Source

pub fn proxy_auth_str(&self) -> Option<&str>

Returns the optional Proxy-Authorization credential string.

§Arguments
  • &Self - Transport reference.
§Returns
  • Option<&str> - Proxy credential string when configured.
Source§

impl HttpReleaseTransport

Source

pub fn get_base_url(&self) -> &String

Source

pub fn get_mut_base_url(&mut self) -> &mut String

Source

pub fn set_base_url(&mut self, val: String) -> &mut Self

Source

pub fn get_timeout_ms(&self) -> u64

Source

pub fn get_mut_timeout_ms(&mut self) -> &mut u64

Source

pub fn set_timeout_ms(&mut self, val: u64) -> &mut Self

Source

pub fn get_mut_proxy_url(&mut self) -> &mut Option<String>

Source

pub fn set_proxy_url(&mut self, val: Option<String>) -> &mut Self

Source

pub fn get_mut_proxy_auth(&mut self) -> &mut Option<String>

Source

pub fn set_proxy_auth(&mut self, val: Option<String>) -> &mut Self

Source§

impl HttpReleaseTransport

Source

pub fn new(base_url: String, timeout_ms: u64) -> Self

Trait Implementations§

Source§

impl Clone for HttpReleaseTransport

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for HttpReleaseTransport

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for HttpReleaseTransport

Source§

impl PartialEq for HttpReleaseTransport

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl ReleaseTransport for HttpReleaseTransport

Real pure-std HTTP/1.1 manifest and range-resumable blob fetching on HttpReleaseTransport.

Source§

fn fetch_manifest( &self, project: &str, channel: &str, negotiation: &ClientNegotiation, ) -> Result<ReleaseManifest, DynamicReleaseError>

Fetches a signed ReleaseManifest from /v1/projects/{project}/channels/{channel}/manifest.

§Arguments
  • &str - Project identifier.
  • &str - Channel name.
  • &ClientNegotiation - Protocol, ABI, delivery mode, and track negotiation parameters.
§Returns
  • Result<ReleaseManifest, DynamicReleaseError> - Deserialized manifest or typed error.
Source§

fn fetch_blob( &self, sha256: &str, range_start: u64, ) -> Result<Vec<u8>, DynamicReleaseError>

Fetches immutable content-addressed blob bytes from /v1/blobs/{sha256} with optional byte-range resume.

§Arguments
  • &str - Lowercase 64-character SHA-256 digest.
  • u64 - Starting byte offset (0 for full download).
§Returns
  • Result<Vec<u8>, DynamicReleaseError> - Downloaded bytes from range_start to EOF.
Source§

impl StructuralPartialEq for HttpReleaseTransport

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.