【文件属性】:
文件名称:may_minihttp:在5月顶部实施的迷你http
文件大小:19KB
文件格式:ZIP
更新时间:2021-05-15 04:56:28
Rust
may_minihttp
微型HTTP服务器上实现的顶部
此板条箱是从移植的。 但是,由于非常易于使用,您可以在服务中直接调用MAY块API。
用法
首先,将其添加到您的Cargo.toml :
[ dependencies ]
may_minihttp = { git = " https://github.com/Xudong-Huang/may_minihttp.git " }
然后只需实现您的http服务
extern crate may_minihttp;
use std :: io;
use may_minihttp :: {HttpServer, HttpService, Request, Response};
// implement the `HttpService` trait for your service
struct HelloWorld ;
impl H