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
860 stars 164 forks source link

Add bandwidth tracker feature #113

Closed justhyped closed 7 months ago

justhyped commented 7 months 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.