szmarczak / http-timer

🕐 Performance timings for HTTP requests
MIT License
192 stars 18 forks source link

phases.firstByte shouldn't include the upload time #2

Closed jstewmon closed 5 years ago

jstewmon commented 6 years ago

The response time is being calculated as the difference between when the connection was made and when the response was received. If the request includes a body, the time spend sending the body will be erroneously included in the response time.