bogdanfinn / tls-client

net/http.Client like HTTP Client with options to select specific client TLS Fingerprints to use for requests.
BSD 4-Clause "Original" or "Old" License
667 stars 133 forks source link

Add bandwidth tracker feature #113

Closed justhyped closed 1 month ago

justhyped commented 1 month ago

Instead of trying to calculate bandwidth based on requests and responses, this approach wraps the underlying raw connection and tracks the total amount of bytes being read and written. This approach will therefore also take into account bytes used for tls handshakes.