Skip to content

Rewrite your app in Rust, piece by piece, checked against the original at every step. Works with TypeScript, JavaScript, Python, Go, Ruby, Java, C, PHP, C#, Kotlin, PowerShell and Swift.

426 B
Raw Blame

tserve

A small HTTP server used to test rust-anything app record --http and the HTTP front door. It listens on PORT (default 8080).

$ curl http://localhost:8080/hello
{"message":"hello"}
$ curl -X POST -d 'hello world' http://localhost:8080/upper
HELLO WORLD
$ curl http://localhost:8080/div/7/2
$ curl http://localhost:8080/div/1/0
$ curl http://localhost:8080/now
$ curl http://localhost:8080/missing