http-server 0.1.0

Simple and configurable command-line HTTP server
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use clap::{crate_authors, crate_name, crate_version, App};

mod argument;
mod validator;

/// Creates a **clap** application, bind arguments to it and then get matches
/// from the exection
pub fn build() -> App<'static, 'static> {
    App::new(crate_name!())
    .version(crate_version!())
    .author(crate_authors!())
    .about("Simple and configurable command-line HTTP server\nSource: https://github.com/EstebanBorai/http-server")
    .args(&argument::make_arguments())
}