code: func New(hostResolverConfig *types.HostResolverConfig) *RequestDecorator {
  	requestDecorator := &RequestDecorator{}
  	if hostResolverConfig != nil {
  		requestDecorator.hostResolver = &Resolver{
  			CnameFlattening: hostResolverConfig.CnameFlattening,
  			ResolvConfig:    hostResolverConfig.ResolvConfig,
  			ResolvDepth:     hostResolverConfig.ResolvDepth,
  		}
  	}
  	return requestDecorator
  }
docs: // New creates a new request host middleware.