chrisjsimpson/rust-json-request-actix-example

Rust actix json request example

Send a json request to actix, and parse it

.

Note, this does not provide any helpful feedback to the client (for example, when an invalid or incomplete json payload is sent, there's no helpful error message like fastapi).

See docs: https://actix.rs/docs/request/ "JSON Request"

See also crate serde_json.

Clone this repo then

Install:

cargo run

Then:

curl -H "Content-Type: application/json" http://127.0.0.1:8080 -d '{"username": "fred"}'

Information - Updated Nov 09, 2021

Stars: 0
Forks: 0
Issues: 0
Actix

7.2K

Actix Rust Framework for web and wasm based applications

Rust's premier framework for handling large scale web applications across a wide varaitey of operating systems

Actix Rust Framework for web and wasm based applications
Actix

14.1K

Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust

Rust's premier framework for working with HTTP/1.x HTTP/2 requests. Includes core features like websockets, keep-alives and slow requests handling

Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust

Actix codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the...

Learn by example when using actix and speed up development time

Actix codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the...

Actix Casbin Middleware

Casbin only takes charge of permission control, so you need to implement an Authentication Middleware to identify user

Actix Casbin Middleware

ACTIX (Rust) + React (Typescript) website template

Rust) + Typescript) website template

ACTIX (Rust) + React (Typescript) website template

actix-web-async-graphql-rbatis

Clean boilerplate for graphql services using actix-web, rhai, async-graphql, surf, rbatis, graphql-client, handlebars-rust, jsonwebtoken, and mysql / postgresql

actix-web-async-graphql-rbatis

actix-web-async-graphql-rbatis

Clean boilerplate for graphql services using actix-web, rhai, async-graphql, surf, rbatis, graphql-client, handlebars-rust, jsonwebtoken, and mysql / postgresql

actix-web-async-graphql-rbatis

Actix Web OpenTelemetry

OpenTelemetry integration for actix-web uses

Actix Web OpenTelemetry

actix-web-grants

To check user access to specific services, you can use built-in proc-macro, PermissionGuard or manual

actix-web-grants

Actix Showtime Server

Server implementation in rust using the actix-web and sqlx frameworks

Actix Showtime Server

actix-web-middleware-keycloak-auth

Actix Web that handles authentication with a JWT emitted by paperclip using the paperclip_compat feature

actix-web-middleware-keycloak-auth

actix-web-validator

This crate is a Rust library for providing validation mechanism to actix-web with Validator crate

actix-web-validator
Facebook Instagram Twitter GitHub Dribbble
Privacy