1
0
mirror of https://github.com/actix/examples synced 2024-11-30 09:12:54 +01:00

Improve the "basics" example (#393)

This commit is contained in:
Simon Strandgaard 2020-12-18 22:32:36 +01:00 committed by GitHub
parent 401753dd90
commit 7783600918
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@ cargo run
- [http://localhost:8080/async-body/bob](http://localhost:8080/async-body/bob) - [http://localhost:8080/async-body/bob](http://localhost:8080/async-body/bob)
- [http://localhost:8080/user/bob/](http://localhost:8080/user/bob/) text/plain download - [http://localhost:8080/user/bob/](http://localhost:8080/user/bob/) text/plain download
- [http://localhost:8080/test](http://localhost:8080/test) (return status switch GET or POST or other) - [http://localhost:8080/test](http://localhost:8080/test) (return status switch GET or POST or other)
- [http://localhost:8080/favicon](http://localhost:8080/static/favicon.htmicol) - [http://localhost:8080/favicon](http://localhost:8080/favicon)
- [http://localhost:8080/welcome](http://localhost:8080/static/welcome.html) - [http://localhost:8080/welcome](http://localhost:8080/static/welcome.html)
- [http://localhost:8080/notexit](http://localhost:8080/static/404.html) display 404 page - [http://localhost:8080/notexit](http://localhost:8080/static/404.html) display 404 page
- [http://localhost:8080/error](http://localhost:8080/error) Panic after request - [http://localhost:8080/error](http://localhost:8080/error) Panic after request

View File

@ -3,7 +3,7 @@
<head> <head>
<title>actix - basics</title> <title>actix - basics</title>
<link rel="shortcut icon" type="image/x-icon" href="/favicon" /> <link rel="shortcut icon" type="image/x-icon" href="/favicon">
</head> </head>
<body> <body>

View File

@ -3,11 +3,11 @@
<head> <head>
<title>actix - basics</title> <title>actix - basics</title>
<link rel="shortcut icon" type="image/x-icon" href="/favicon" /> <link rel="shortcut icon" type="image/x-icon" href="/favicon">
</head> </head>
<body> <body>
<h1>Welcome <img width="30px" height="30px" src="/static/actixLogo.png" /></h1> <h1>Welcome <img width="30" height="30" src="/static/actixLogo.png"></h1>
</body> </body>
</html> </html>