[][src]Struct httpbis::ServerResponse

pub struct ServerResponse { /* fields omitted */ }

Implementations

impl ServerResponse[src]

pub fn state(&self) -> SenderState[src]

pub fn set_drop_callback<F>(&mut self, f: F) where
    F: FnMut(&mut ServerResponse) -> Result<()> + Send + 'static, 
[src]

pub fn clear_drop_callback(&mut self)[src]

pub fn poll(&mut self, cx: &mut Context) -> Poll<Result<(), StreamDead>>[src]

pub fn send_headers(&mut self, headers: Headers) -> Result<(), SendError>[src]

pub fn send_headers_end_of_stream(
    &mut self,
    headers: Headers
) -> Result<(), SendError>
[src]

pub fn send_data(&mut self, data: Bytes) -> Result<(), SendError>[src]

pub fn send_data_end_of_stream(&mut self, data: Bytes) -> Result<(), SendError>[src]

pub fn send_trailers(&mut self, trailers: Headers) -> Result<(), SendError>[src]

pub fn pull_from_stream(
    &mut self,
    stream: HttpStreamAfterHeaders
) -> Result<(), SendError>
[src]

pub fn pull_bytes_from_stream<S>(&mut self, stream: S) -> Result<(), SendError> where
    S: Stream<Item = Result<Bytes>> + Send + 'static, 
[src]

pub fn send_message(
    &mut self,
    message: SimpleHttpMessage
) -> Result<(), SendError>
[src]

pub fn send_found_200_plain_text(&mut self, body: &str) -> Result<(), SendError>[src]

pub fn send_redirect_302(&mut self, location: &str) -> Result<(), SendError>[src]

pub fn send_not_found_404(&mut self, message: &str) -> Result<(), SendError>[src]

pub fn send_internal_error_500(
    &mut self,
    message: &str
) -> Result<(), SendError>
[src]

pub fn reset(&mut self, error_code: ErrorCode) -> Result<(), SendError>[src]

pub fn close(&mut self) -> Result<(), SendError>[src]

Trait Implementations

impl Drop for ServerResponse[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.