Anyone know how to do this?
Cheers!
Cheers!
|
C#
Measure bandwidth consumed by a single HttpClient WebRequest [C#] |
|
Not sure if I get it correctly but wouldnt adding all this bytes be sufficient??
(May 12, 2020 09:52 PM)Accord Wrote: Not sure if I get it correctly but wouldnt adding all this bytes be sufficient?? Almost, but that would only be the down right? You would probably need to take the total size of the request and the total size of the response? (May 12, 2020 09:52 PM)Accord Wrote: Not sure if I get it correctly but wouldnt adding all this bytes be sufficient?? Add the body and the headers and then get length of bytes? Would it be possible to give me an example?
May 13, 2020 08:31 AM
(This post was last modified: May 13, 2020 08:31 AM by Shadow_Cloud.)
(May 13, 2020 08:22 AM)draxyee Wrote: Add the body and the headers and then get length of bytes? You should already have a Content-Length property on the objects? https://docs.microsoft.com/en-us/dotnet/...etcore-3.1 https://docs.microsoft.com/en-us/dotnet/...tentLength (May 13, 2020 08:31 AM)Shadow_Cloud Wrote: You should already have a Content-Length property on the objects? So how would I get the size of the webheader collection? Would I then add it to the size of content length? Cheers |
|
|
| Possibly Related Threads... | |||
| Thread / Author | Replies | Views | Last Post |
| [.NET] by OxycodoneJul 20, 2022 12:19 AM | 0 | 147 |
Jul 20, 2022 12:19 AM Last Post: Oxycodone |
| [C#] by Nemo2478Aug 6, 2020 09:53 PM | 1 | 161 |
Aug 6, 2020 09:53 PM Last Post: Sonimnx |
| [C#] by draxyeeJul 12, 2020 10:06 PM | 9 | 950 |
Jul 12, 2020 10:06 PM Last Post: iolaka |