Apr-16-2022, 02:13 PM
An HTTP response need not be the contents of a file and the Content-Length header simply contains the size of that response. So, in the case of a 404 where the server sent something in the response body, you'll still get a non-zero value for Content-Length.
import
statements should be listed first mainly for readability purposes - they interrupt your flow of reading and understanding the code if they're in the middle.