code: def _parse(read_method: Callable) -> HTTPResponse:
          
          response = read_method(4096)
          while b'HTTP/' not in response or b'\r\n\r\n' not in response:
              # Parse until the end of the headers
              response += read_method(4096)
  
          fake_sock = _FakeSocket(response)
          response = HTTPResponse(fake_sock)  # type: ignore
          response.begin()
          return response
docs: Trick to standardize the API between sockets and SSLConnection objects.