Scenario
I'm doing analytics of a data connection being made via Java's HttpConnection. Specifically, I want to measure:
- Time it took to receive the response header (not the full response)
- Time it took to download the data (not the full request, the response)
To me, it seems as if the HttpConnection class is not sophisticated enough report these metrics (via events or overriding specific methods).
Final Questions
Does Java's HttpConnection allow for granular measurement/analysis of the steps associated with a data request (measure time to retrieve just the header, time to retrieve just the body data)? If so, how can this be done?