kaspanet / rusty-kaspa

Kaspa full-node and related libraries in the Rust programming language. This is a stable version at the initial rollout phases.
ISC License
376 stars 119 forks source link

Add request/response size middlewares and dependencies #335

Closed biryukovmaxim closed 7 months ago

biryukovmaxim commented 7 months ago

Introduced a new module request_response_size_middlewares to utils library to count the sizes of request and response bodies. Furthermore, added several dependencies to Cargo.toml and updated Cargo.lock necessary for new functionality. This includes libraries like 'hyper', 'tower', and 'pin-project-lite'. The new implementation will provide us with exact sizes of data transferred.