GDHttp

GDHttp is as low-level as you can make HTTP server for rust lang.

How to use it?

You can start server with start or startMultithreaded method. The difference is that second one executes callback by thread::spawn (your second argument that you had passed). In callback, you can do whatever you want with the request, but you must return a http response struct.

And I know, I know, that statuscodemessage thing will be done some other way. It's temporary. I just needed this library as fast as I could make it, so that is what I came up with.

```rust use std::collections::HashMap; use gdhttp::HttpResponse;

fn main() { let _ = gdhttp::start("0.0.0.0:8080", || { return HttpResponse { body: "Hello world".tostring(), headers: HashMap::new(), statuscode: 200, statuscodemessage: "OK".tostring(), }; }); } ```