func NewParser(r resolver.Resolver) parser.IngressAnnotation {
	return redirect{r}
}
NewParser creates a new redirect annotation parser
package redirect
import (
	"net/http"
	"net/url"
	"strings"
	extensions "k8s.io/api/extensions/v1beta1"
	"github.com/NCCloud/fluid/internal/ingress/annotations/parser"
	"github.com/NCCloud/fluid/internal/ingress/errors"
	"github.com/NCCloud/fluid/internal/ingress/resolver"
)
type Config struct {
	URL       string `json:"url"`
	Code      int    `json:"code"`
	FromToWWW bool   `json:"fromToWWW"`
}
type redirect struct {
	r resolver.Resolver
}