pub enum SendKind {
Send(ResponsePipe),
Push(PushedResponsePipe),
}Expand description
How to send data to the client.
Most often, this is Send, but when a push promise is created,
this will be Push. This can be used by extensions::Post.
Variants§
Send(ResponsePipe)
Send the response normally.
Push(PushedResponsePipe)
Send the response as a HTTP/2 push.
Implementations§
source§impl SendKind
impl SendKind
sourcepub fn ensure_length<T>(&self, response: &mut Response<T>, len: u64)
pub fn ensure_length<T>(&self, response: &mut Response<T>, len: u64)
Ensures correct length (only applicable for HTTP/1 connections).