ProSA Hyper processor for HTTP client/server build on Hyper, a Tokio implementation of HTTP.
To include it in your project, add the crate to your dependencies:
cargo add prosa-hyper
To build your ProSA application afterward, use cargo-prosa or build manually.
The server configuration is straightforward. You only need to set a ListenerSetting to configure.
http_server:
listener:
url: https://0.0.0.0:443
ssl:
store:
path: "cert_path/"
cert: cert.pem
key: key.pem
passphrase: MySuperPassphrase
To get help on the processor command-line arguments, run:
cargo run --example server -- -h
If you run it without any parameters, it'll start an HTTPS server using the configuration in examples/server.yml:
cargo run --example server
The server provides the following targets: