pub struct RpcResponseOwned {
pub status: u16,
pub body: Vec<u8>,
pub headers: Vec<ResponseHeader>,
}Expand description
The response, owned.
Fields§
§status: u16The HTTP status code the drone’s API returned.
body: Vec<u8>The HTTP response body bytes the drone’s API returned, reassembled from every fragment.
headers: Vec<ResponseHeader>The allow-listed response headers the drone sent with that body, in the order it sent them. Empty when the drone carried none — which is also what a drone older than the header block reports, so an empty list means “no headers crossed”, never “the body has no type”.
Without these a relayed body is unusable for anything a consumer
branches on: a downloaded artifact has no content-type and no
content-disposition filename, a WHEP Location cannot route session
teardown back through the proxy, and a text/plain error renders as a
download.
Trait Implementations§
Source§impl Clone for RpcResponseOwned
impl Clone for RpcResponseOwned
Source§impl Debug for RpcResponseOwned
impl Debug for RpcResponseOwned
impl Eq for RpcResponseOwned
Source§impl PartialEq for RpcResponseOwned
impl PartialEq for RpcResponseOwned
impl StructuralPartialEq for RpcResponseOwned
Auto Trait Implementations§
impl Freeze for RpcResponseOwned
impl RefUnwindSafe for RpcResponseOwned
impl Send for RpcResponseOwned
impl Sync for RpcResponseOwned
impl Unpin for RpcResponseOwned
impl UnsafeUnpin for RpcResponseOwned
impl UnwindSafe for RpcResponseOwned
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.