server_lib 0.1.0

Naive library for multithreading backend system
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::server::request_parser::ParsedRequest;

pub trait ControllerBase {
    fn get(&self, opt: &Option<ParsedRequest>) -> String;
    fn post(&self, opt: &Option<ParsedRequest>) -> String;
    fn put(&self, opt: &Option<ParsedRequest>) -> String;
    fn update(&self, opt: &Option<ParsedRequest>) -> String;
    fn delete(&self, opt: &Option<ParsedRequest>) -> String;
    fn route(&self) -> String;
}