| Crates.io | hyper_echo |
| lib.rs | hyper_echo |
| version | 0.1.1 |
| created_at | 2025-03-09 23:03:39.847497+00 |
| updated_at | 2025-05-02 09:51:50.631458+00 |
| description | Echo server supporting http and websocket |
| homepage | |
| repository | https://github.com/kuznetsss/hyper_echo |
| max_upload_size | |
| id | 1585967 |
| size | 110,390 |
Hyper echo is an echo server empowered by tokio, tower, hyper and fastwebsockets. It supports both HTTP and WebSocket protocols, making it ideal for testing and debugging network applications. It is available as a standalone binary or as a crate.
0: No logging (default)1: Log the request URI2: Log the request URI and headers3: Log the request URI, headers and bodyhyper_echo automatically find a free oneCtrl-C and force exit on the second Ctrl-CUse the flag --help to discover CLI options for customizing the behavior of hyper_echo.
There are two crate's features controlling HTTP logging:
tower_trace (default) is based on Trace from tower_http cratecustom_trace is a layer for tower service written from scratchBoth implementations are almost identical from a user perspective.
There is no real reason to use logging implementation provided by custom_trace feature.
It was created to learn how to create a custom tower layer and how to handle multiple features in one crate.
But if in some case you want to use it, please don't forget to add default-features = false if you are using custom_trace because
it is possible to use only one logging implementation at a time.
Thanks to David Peterson for the Tower deep dive video explained for me how to use tower.