All I care about is the circled figure at the top, since that's my source code. Is that all the GetStringAsync
method will need to download, or will other more data-intensive stuff happen in the background too and bloat this figure?
CodePudding user response:
HttpClient is not a web browser (engine), and it does not behave like a web browser.
HttpClient.GetStringAsync will only receive (download) the response/resource from the server. HttpClient is not going to analyze and parse what that resource might be. From the perspective of HttpClient.GetStringAsync it's just trying to obtain a response from the server whose payload is supposed to be text data (a string). That's it. Whether the response is some HTML text, some json text, or just some letter soup is of no concern to HttpClient, because HttpClient is not a web browser engine.
In summary:
Does GetStringAsync only download the source, or will the embedded resources such as images, google maps controls, scripts, etc...
It only downloads the source, because HttpClient is not a web browser engine.