32 releases (12 breaking)
Uses new Rust 2021
|new 0.13.1||Jun 23, 2022|
|0.12.0||Jun 9, 2022|
|0.11.0||Mar 2, 2022|
|0.10.0||Dec 28, 2021|
|0.1.4||Jul 28, 2020|
#108 in Rust patterns
2,271 downloads per month
Used in prima-tracing
Prima bridge pattern implementation for rust
You can find all the examples in examples directory.
This crate gives an high level api to execute external request.
It is supposed to give the basics building blocks for building bridges to other services while abstracting the low level stuffs like adding custom headers and request tracing.
Right now it supports Rest and GraphQL requests.
You should start by creating a Bridge instance. This instance should live for all the application lifetime.
Do not create a new bridge on every request!
The bridge implement a type state pattern to build the external request.