added APIs and tests for NettyHttpResponse
remove unnecessary imports