Daiki48 / actixweb_json_post

Post json using actix-web.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Post json using actix-web.

Usage

$ cargo run

Open another terminal.

$ curl -X POST -H 'Content-Type: application/json' -d '{ "str": "Hello actix-web", "num": 100, "arr": [1, 2, 3, 4, 5, 6, 7]}' http://localhost:8080/postjson

Response

str Hello actix-web num 100 arr [1, 2, 3, 4, 5, 6, 7]

About

Post json using actix-web.


Languages

Language:Rust 100.0%