func (res HTTPResponse) MarshalLogObject(enc zapcore.ObjectEncoder) error {
	if res.R == nil {
		return nil
	}
	enc.AddString("status", res.R.Status)
	enc.AddInt("status_code", res.R.StatusCode)
	enc.AddString("proto", res.R.Proto)
	if err := enc.AddReflected("headers", res.R.Header); err != nil {
		return err
	}
	if req := res.R.Request; req != nil {
		if err := enc.AddObject("http_request", HTTPRequest{req}); err != nil {
			return err
		}
	}
	return nil
}
MarshalLogObject implements zapcore.ObjectMarshaller interface.
package types
import (
	"net/http"
	"go.uber.org/zap/zapcore"
)
type HTTPResponse struct {
	R *http.Response
}