TrimSpace utility function.
Use ReadLineBytes in sendBodyChunked.
Parse Keep-Alive header.
Use Keep-Alive header to estimate server close time.