Skip to content

lysender/ok-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ok-rs

HTTP server that responds with OK, sometimes it echos.

Note: This is for development purposes only.

Installation

Build using cargo:

cargo build --release

You can copy the binary into your $PATH to run it anywhere or you can just run it directly.

ok-rs --port 4200

Usage

You can visit the URL directly using the browser or use curl for testing purposes.

curl http://127.0.0.1:4100/foo/bar/baz

Response modes:

  • Sends back the request body if POST/PUT/PATCH and content type is application/json
  • Sends OK as plain text for all other requests

About

HTTP server that responds with OK, sometimes it echos.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages