Juan Aguilar 9c83c863f6 Update yarte to 0.14 (#6231) há 4 anos atrás
..
src 9c83c863f6 Update yarte to 0.14 (#6231) há 4 anos atrás
templates 32111f7310 Add yarte at actix-pg fortunes (#4983) há 6 anos atrás
Cargo.toml 9c83c863f6 Update yarte to 0.14 (#6231) há 4 anos atrás
README.md 3f18f06551 Rust Actix Readme correct fortune url (#5062) há 6 anos atrás
actix-core.dockerfile 45bbd854fe Update actix fortunes yarte and remove worse (#6168) há 4 anos atrás
actix-diesel.dockerfile 45bbd854fe Update actix fortunes yarte and remove worse (#6168) há 4 anos atrás
actix-pg.dockerfile 45bbd854fe Update actix fortunes yarte and remove worse (#6168) há 4 anos atrás
actix-raw.dockerfile 45bbd854fe Update actix fortunes yarte and remove worse (#6168) há 4 anos atrás
actix.dockerfile 45bbd854fe Update actix fortunes yarte and remove worse (#6168) há 4 anos atrás
benchmark_config.json 8e4fb57801 Update fortunes path and v_escape at actix, ntex, hyper, may-minihttp (#5834) há 5 anos atrás
rustfmt.toml 03e3c4effa Upgrade to actix-web 1.0.0 (#4593) há 6 anos atrás

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/fortune

Test 5: Update Query

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

Test 6: Plaintext

http://localhost:8080/plaintext