pub struct HttpReply {
pub contentType: String,
pub body: Hex<Vec<u8>>,
pub headers: Vec<HttpHeader>,
}
Expand description
An HTTP reply
Services return this from their serveSys action.
Fields§
§contentType: String
“application/json”, “text/html”, …
body: Hex<Vec<u8>>
Response body
headers: Vec<HttpHeader>
HTTP Headers
Trait Implementations§
source§impl<'de> Deserialize<'de> for HttpReply
impl<'de> Deserialize<'de> for HttpReply
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<WebContentRow> for HttpReply
impl From<WebContentRow> for HttpReply
source§fn from(content_row: WebContentRow) -> Self
fn from(content_row: WebContentRow) -> Self
Converts to this type from the input type.
source§impl PartialEq for HttpReply
impl PartialEq for HttpReply
source§impl<'a> Unpack<'a> for HttpReply
impl<'a> Unpack<'a> for HttpReply
source§fn unpack(src: &'a [u8], pos: &mut u32) -> Result<Self>
fn unpack(src: &'a [u8], pos: &mut u32) -> Result<Self>
Convert from fracpack format. Also verifies the integrity of the data. Read more
source§fn verify(src: &'a [u8], pos: &mut u32) -> Result<()>
fn verify(src: &'a [u8], pos: &mut u32) -> Result<()>
Verify the integrity of fracpack data. You don’t need to call this if
using [Pack::unpack] since it verifies integrity during unpack.
impl Eq for HttpReply
impl StructuralPartialEq for HttpReply
Auto Trait Implementations§
impl Freeze for HttpReply
impl RefUnwindSafe for HttpReply
impl Send for HttpReply
impl Sync for HttpReply
impl Unpin for HttpReply
impl UnwindSafe for HttpReply
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<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.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.