new example in readme.md
This commit is contained in:
parent
7c5e6dc9c7
commit
3a7387b894
@ -51,7 +51,7 @@ fn main() {
|
|||||||
HttpServerStarter::new(site, host)
|
HttpServerStarter::new(site, host)
|
||||||
.timeout(Some(Duration::from_secs(5))) // read & write timeout
|
.timeout(Some(Duration::from_secs(5))) // read & write timeout
|
||||||
.threads(5) // threadpool size
|
.threads(5) // threadpool size
|
||||||
.start()
|
.start_forever()
|
||||||
.expect("http server error");
|
.expect("http server error");
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user