func (df *DataFlow) GetHost() (string, error) {
	if df.req != nil {
		return df.req.URL.Host, nil
	}

	if len(df.host) > 0 {
		return df.host, nil
	}

	if len(df.url) > 0 {
		url, err := url.Parse(df.url)
		if err != nil {
			return "", err
		}
		return url.Host, nil
	}

	return "", errors.New("not url found")
}
// GetHost return value->host or host:port
GetHost return value->host or host:port
// GetHost return value - > host or host : port
func (df *DataFlow) GetHost() (string, error) {
	if df.req != nil {
		return df.req.URL.Host, nil
	}
	if len(df.host) > 0 {
		return df.host, nil
	}
	if len(df.url) > 0 {
		url, err := url.Parse(df.url)
		if err != nil {
			return "", err
		}
		return url.Host, nil
	}
	return "", errors.New("not url found")
}
func ( df * DataFlow ) GetHost ( ) ( string , error ) { if df . req != nil { return df . req . URL . Host , nil } if len ( df . host ) > 0 { return df . host , nil } if len ( df . url ) > 0 { url , err := url . Parse ( df . url ) if err != nil { return " " , err } return url . Host , nil } return " " , errors . New ( " " ) }
GetHost return value->host or host:port
GetHost return value - > host or host : port