prosa-hyper

Crates.ioprosa-hyper
lib.rsprosa-hyper
version0.2.0
created_at2025-07-07 09:02:53.96826+00
updated_at2025-08-15 12:38:59.443337+00
descriptionProSA Hyper processor for HTTP client/server
homepagehttps://worldline.com/
repositoryhttps://github.com/worldline/ProSA-Hyper
max_upload_size
id1740906
size144,207
Anthony Thomas (Timmy80)

documentation

README

ProSA Hyper

ProSA Hyper processor for HTTP client/server build on Hyper, a Tokio implementation of HTTP.

Use

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.

Configuration

Server

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

Examples

Server

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:

  • / returns the ProSA name
  • /test contacts an internal service named SRV_TEST (requires starting the stub processor)
  • metrics exposes Prometheus metrics as configured
Commit count: 0

cargo fmt