[−][src]Struct httpbis::ServerResponse
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]
F: FnMut(&mut ServerResponse) -> Result<()> + Send + 'static,
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]
&mut self,
headers: Headers
) -> Result<(), SendError>
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]
&mut self,
stream: HttpStreamAfterHeaders
) -> Result<(), SendError>
pub fn pull_bytes_from_stream<S>(&mut self, stream: S) -> Result<(), SendError> where
S: Stream<Item = Result<Bytes>> + Send + 'static,
[src]
S: Stream<Item = Result<Bytes>> + Send + 'static,
pub fn send_message(
&mut self,
message: SimpleHttpMessage
) -> Result<(), SendError>
[src]
&mut self,
message: SimpleHttpMessage
) -> Result<(), SendError>
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]
&mut self,
message: &str
) -> Result<(), SendError>
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
impl !RefUnwindSafe for ServerResponse
impl Send for ServerResponse
impl !Sync for ServerResponse
impl Unpin for ServerResponse
impl !UnwindSafe for ServerResponse
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,