Skip to content

A simple server that just returns the payload that was sent to it.

Notifications You must be signed in to change notification settings

mjviljan/echo-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Simple Echo Server

A simple server that just returns the payload that was sent to it. Currently only JSON requests are supported.

The server is written in Rust.

Prerequisites

You need to have Rust and its package manager Cargo installed.

Development

To install required dependencies, run

cargo update

Then you start the server by running

cargo run

Testing

To test the server, post a JSON payload to the route defined in the code. You can use the provided test JSON file with e.g. Curl:

curl -X POST -H "Content-Type: application/json" -d "@test.json"  http://localhost:8000/echo/json

About

A simple server that just returns the payload that was sent to it.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages