[][src]Struct fastly::request::RequestHandle

#[repr(transparent)]
pub struct RequestHandle { /* fields omitted */ }

Methods

impl RequestHandle[src]

pub const INVALID: Self[src]

pub fn is_invalid(&self) -> bool[src]

pub fn downstream() -> Result<Self, Error>[src]

pub fn new() -> Result<Self, Error>[src]

pub fn get_header_names<'a>(
    &'a self,
    buf_size: usize
) -> impl Iterator<Item = Result<HeaderName, Error>> + 'a
[src]

Read a request's header names via a buffer of the provided size.

If there is a header name that is longer than the provided buffer, this will return an error; you can retry with a larger buffer size if necessary.

pub fn get_header_values<'a>(
    &'a self,
    name: &'a HeaderName,
    buf_size: usize
) -> impl Iterator<Item = Result<HeaderValue, Error>> + 'a
[src]

pub fn set_header_values<'a, I>(
    &mut self,
    name: &HeaderName,
    values: I
) -> Result<(), Error> where
    I: IntoIterator<Item = &'a HeaderValue>, 
[src]

pub fn insert_header(
    &mut self,
    name: &HeaderName,
    value: &HeaderValue
) -> Result<(), Error>
[src]

pub fn append_header(
    &mut self,
    name: &HeaderName,
    value: &HeaderValue
) -> Result<(), Error>
[src]

pub fn get_version(&self) -> Result<Version, Error>[src]

pub fn set_version(&mut self, v: Version) -> Result<(), Error>[src]

pub fn get_method(&self, max_length: usize) -> Result<Method, Error>[src]

pub fn set_method(&self, method: &Method) -> Result<(), Error>[src]

pub fn get_uri(&self, max_length: usize) -> Result<Uri, Error>[src]

pub fn set_uri(&mut self, uri: &Uri) -> Result<(), Error>[src]

pub fn send(
    self,
    body: BodyHandle,
    backend: &str,
    ttl: i32
) -> Result<(ResponseHandle, BodyHandle), Error>
[src]

Trait Implementations

impl Debug for RequestHandle[src]

impl Eq for RequestHandle[src]

impl Hash for RequestHandle[src]

impl PartialEq<RequestHandle> for RequestHandle[src]

impl StructuralEq for RequestHandle[src]

impl StructuralPartialEq for RequestHandle[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.