Struct psibase::HttpHeader
source · pub struct HttpHeader {
pub name: String,
pub value: String,
}Expand description
An HTTP header
Note: proxy-sys aborts when most services set HTTP headers. It only allows services
it trust to set them in order to enforce security rules.
Fields§
§name: StringName of header, e.g. “Content-Security-Policy”
value: StringValue of header
Trait Implementations§
source§impl Clone for HttpHeader
impl Clone for HttpHeader
source§fn clone(&self) -> HttpHeader
fn clone(&self) -> HttpHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for HttpHeader
impl Debug for HttpHeader
source§impl Default for HttpHeader
impl Default for HttpHeader
source§fn default() -> HttpHeader
fn default() -> HttpHeader
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for HttpHeader
impl<'de> Deserialize<'de> for HttpHeader
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 Pack for HttpHeader
impl Pack for HttpHeader
source§impl PartialEq for HttpHeader
impl PartialEq for HttpHeader
source§fn eq(&self, other: &HttpHeader) -> bool
fn eq(&self, other: &HttpHeader) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Reflect for HttpHeader
impl Reflect for HttpHeader
type StaticType = HttpHeader
fn reflect<V: Visitor>(visitor: V) -> V::Return
source§impl Serialize for HttpHeader
impl Serialize for HttpHeader
source§impl ToKey for HttpHeader
impl ToKey for HttpHeader
source§impl<'a> Unpack<'a> for HttpHeader
impl<'a> Unpack<'a> for HttpHeader
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 HttpHeader
impl StructuralPartialEq for HttpHeader
Auto Trait Implementations§
impl RefUnwindSafe for HttpHeader
impl Send for HttpHeader
impl Sync for HttpHeader
impl Unpin for HttpHeader
impl UnwindSafe for HttpHeader
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.