Tiny http server library using tiny http
You need to provide a error.html file to use when server return 404 error.
```rust
use httpservertiny::{HttpServer, Method, Res};
fn main() -> Result<(), Box
server.add_route(
&Method::Post,
"/api/search",
Box::new(|req| {
println!("{}", req.content);
Res::Empty
}),
);
server.handle_requests()
} ```
html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Hello, World</title>
</head>
<body>
<h1>Hello, world!</h1>
</body>
<script src="index.js"></script>
</html>
```javascript fetch("/api/search", { method: 'POST', body: 'Hakan', })
```
```html
```