sark-core 0.8.2

the L7 layer for dope
Documentation
1
2
3
4
5
6
7
8
9
10
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 const ERR_INVALID_HEADER_VALUE: &str = "Invalid header value";
pub const ERR_HEADER_LINE_TOO_LONG: &str = "Header line too long";

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