derust 0.3.6

Easy way to start your Rust asynchronous application server using Tokio and Axum frameworks.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::httpx::HttpTags;
use axum::http::StatusCode;

pub mod error;
pub mod json;
pub mod text;

pub trait HttpResponse: Send + Sync {
    fn status_code(&self) -> StatusCode;
    fn error_message(&self) -> Option<String>;
    fn response_body(&self) -> Option<String>;
    fn response_headers(&self) -> Option<Vec<(String, String)>>;
    fn tags(&self) -> HttpTags;
}