Skip to content

njayp/rust-tonic-header-propagation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-tonic-header-propagation

Usage

This repo is a demo for header propagation in rust using tonic and tower. Start two servers and send requests to see this in action.

Start servers on 9090 and 9091

cargo run --bin server

In a second terminal

cargo run --bin server -- port 9091

Use the cli to send a request to 9090 and see the headers propagated to the response

cargo run --bin cli

Use the cli to send a request to 9090 that is forwarded to 9091 and see the headers propagated to the forwarded request

cargo run --bin cli -- --fwd 9091

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages