httimple 0.1.7

Simple HTTP2 package 😃
mod stream;

use self::stream::Stream;

use std::collections::HashMap;


pub struct Session {
    pub accepted: bool, // Handeshake is done
    pub settings: HashMap<u16, u32>,
    pub streams: HashMap<u32, Stream>
}

impl Session {

    pub fn is_accepted(&self) -> bool {
        return self.accepted;
    }

    pub fn accept(&mut self) {
        self.accepted = true;
    }

}