http-server 0.8.9

Simple and configurable command-line HTTP server
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use serde::Deserialize;

#[derive(Clone, Debug, Deserialize, PartialEq, Eq)]
pub struct BasicAuthConfig {
    pub username: String,
    pub password: String,
}

impl BasicAuthConfig {
    pub fn new(username: String, password: String) -> Self {
        BasicAuthConfig { username, password }
    }
}