How to calculate http request&response size in rust hyper 0.14

73 Views Asked by At

I'm writing a gateway is hyper and looking for a way to calculate the size of http request&response size(bytes) in hyper 0.14. as you know the body of request&response is a stream, so is there any middleware or any other solution for this problem?

0

There are 0 best solutions below