sark-core 0.5.0

the L7 layer for dope
Documentation
1
2
3
4
5
6
7
8
use crate::error::Error;

pub const ERR_TOO_MANY_HEADERS: &str = "Too many headers";
pub const ERR_INVALID_HEADER_NAME: &str = "Invalid header name";

pub fn bad_request(msg: &'static str) -> Error {
    Error::BadRequest(msg.into())
}