use createHttpClientCodec to use user defined parameters

The private method upgradeProtocol was not using user defined parameters when creating a new HttpClientCodec for netty.