Struct solicit::http::server::ServerSession
[−]
[src]
pub struct ServerSession<'a, State> where State: SessionState + 'a {
// some fields omitted
}
An implementation of the Session
trait for a server-side HTTP/2 connection.
Methods
impl<'a, State> ServerSession<'a, State> where State: SessionState + 'a
[src]
fn new(state: &'a mut State) -> ServerSession<State>
Trait Implementations
impl<'a, State> Session for ServerSession<'a, State> where State: SessionState + 'a
[src]
fn new_data_chunk(&mut self, stream_id: StreamId, data: &[u8])
Notifies the Session
that a new data chunk has arrived on the connection for a particular stream. Only the raw data is passed to the callback (all padding is already discarded by the connection). Read more
fn new_headers(&mut self, stream_id: StreamId, headers: Vec<Header>)
Notifies the Session
that headers have arrived for a particular stream. The given list of headers is already decoded by the connection. Read more
fn end_of_stream(&mut self, stream_id: StreamId)
Notifies the Session
that a particular stream got closed by the peer.