Add a method for encoding directly to a io.Writer and use it for HTTPx
Add a method for encoding directly to a io.Writer and use it for HTTPx

Kubernetes-commit: 89982196869a73fb1c93466ce770c4076684d35b

kubernetes/api