mirror of
https://github.com/ntex-rs/ntex.git
synced 2025-04-05 05:47:40 +03:00
add HttpServer::server_hostname method
This commit is contained in:
parent
cce9c68a10
commit
dd3a2aa68a
3 changed files with 22 additions and 11 deletions
|
@ -87,8 +87,7 @@ fn main() {
|
|||
.resource("/", |r| r.method(Method::GET).f(|req| {
|
||||
println!("{:?}", req);
|
||||
|
||||
httpcodes::HTTPFound
|
||||
.build()
|
||||
HttpResponse::Found()
|
||||
.header("LOCATION", "/index.html")
|
||||
.finish()
|
||||
})))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue