actix-httpbin

httpbin.org clone with Rust and actix-web

Latest version: 0.1.0 registry icon
Maintenance score
0
Safety score
0
Popularity score
70
Check your open source dependency risks. Get immediate insight about security, stability and licensing risks.
Security
  Vulnerabilities
Version Suggest Low Medium High Critical
0.1.0 0 0 0 0 0

Stability
Latest release:

0.1.0 - This version may not be safe as it has not been updated for a long time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform

Licensing

Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.

Apache-2.0   -   Apache License 2.0

Not a wildcard

Not proprietary

OSI Compliant


MIT   -   MIT License

Not a wildcard

Not proprietary

OSI Compliant



actix-httpbin

httpbin.org clone with an actix-web under the hood.

Build Status Crates.io

Advantages

  1. Rust is cool
  2. All images, templates and other files are bundled into one binary, so you can just run it; there is no need in python anymore.
  3. Amazingly fast, low CPU and memory footprint

API

Till 1.0.0 version it will follow the httpbin(1) API, so any requests for changes that are not present at the https://httpbin.org will be closed or postponed.

After the 1.0.0 I might consider to go separately, but let's just reach the first milestone, are'nt we?

Any way, if you need to get list of all available endpoints, run and open it in your browser.

Differences

There are few known (and maybe some unknown) differences from the httpbin(1) right now.

  1. "headers" object keys in the /get, /post and other similar endpoints are lower-cased, it comes from the http crate in that way and I'm not sure if I should force some Camel-Dashed-Case on them
  2. Many methods may respond not only to GET method, it is not intended. If you think that this behaviour is wrong, do not hesitate to create an issue.
  3. Not all methods are implemented for now, you can find them by searching for TODO comment in the src/application.rs file

How to run?

Via Docker

$ docker run -p 80:80 svartalf/actix-httpbin

Install with cargo

$ cargo install actix-httpbin

From sources

$ git clone https://github.com/svartalf/actix-httpbin.git
$ cargo run --release