Nikolay Kim 751e289a9a actix: update rust to 1.35 and actix-web to 1.0rc (#4808) 6 år sedan
..
src 751e289a9a actix: update rust to 1.35 and actix-web to 1.0rc (#4808) 6 år sedan
templates ef202bb6ef Add Rust web framework Actix (#3159) 7 år sedan
Cargo.toml 751e289a9a actix: update rust to 1.35 and actix-web to 1.0rc (#4808) 6 år sedan
README.md 03e3c4effa Upgrade to actix-web 1.0.0 (#4593) 6 år sedan
actix-core.dockerfile 751e289a9a actix: update rust to 1.35 and actix-web to 1.0rc (#4808) 6 år sedan
actix-diesel.dockerfile 751e289a9a actix: update rust to 1.35 and actix-web to 1.0rc (#4808) 6 år sedan
actix-pg.dockerfile 751e289a9a actix: update rust to 1.35 and actix-web to 1.0rc (#4808) 6 år sedan
actix-raw.dockerfile 751e289a9a actix: update rust to 1.35 and actix-web to 1.0rc (#4808) 6 år sedan
actix.dockerfile 751e289a9a actix: update rust to 1.35 and actix-web to 1.0rc (#4808) 6 år sedan
benchmark_config.json 71d1fc9f8f Actix: update deps and plaintext/json impl (#4777) 6 år sedan
rustfmt.toml 03e3c4effa Upgrade to actix-web 1.0.0 (#4593) 6 år sedan

README.md

Actix web framework

Description

Actix web is a small, fast, pragmatic, open source rust web framework.

Features

  • Supported HTTP/1.x and HTTP/2.0 protocols
  • Streaming and pipelining
  • Keep-alive and slow requests handling
  • Client/Server WebSockets
  • Transparent content compression/decompression (br, gzip, deflate)
  • Configurable request routing
  • Graceful server shutdown
  • Multipart streams
  • Middlewares (Logger, Session, DefaultHeaders, CORS)

Database

PostgreSQL.

Test URLs

Test 1: JSON Encoding

http://localhost:8080/json

Test 2: Single Row Query

http://localhost:8080/db

Test 3: Multi Row Query

http://localhost:8080/queries?q=20

Test 4: Fortunes (Template rendering)

http://localhost:8080/fortunes

Test 5: Update Query

http://localhost:8080/updates?q=20

Test 6: Plaintext

http://localhost:8080/plaintext