Minimize allocation of StringBuilder and also minimize char array copy
Try to detect HttpVersion without calling toUpperCase() for performance reasons