Finalizes the response. This is usually called automatically by the server.
This method can be called manually after writing the response to force
all network traffic associated with the current request to be finalized.
After the call returns, the
timeFinalized property will be set.