func (m *MatchHeaderRE) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
	if *m == nil {
		*m = make(map[string]*MatchRegexp)
	}
	for d.Next() {
		var first, second, third string
		if !d.Args(&first, &second) {
			return d.ArgErr()
		}

		var name, field, val string
		if d.Args(&third) {
			name = first
			field = second
			val = third
		} else {
			field = first
			val = second
		}

		(*m)[field] = &MatchRegexp{Pattern: val, Name: name}

		if d.NextBlock(0) {
			return d.Err("malformed header_regexp matcher: blocks are not supported")
		}
	}
	return nil
}
// UnmarshalCaddyfile implements caddyfile.Unmarshaler.
UnmarshalCaddyfile implements caddyfile.Unmarshaler.
// UnmarshalCaddyfile implements caddyfile . Unmarshaler .
func (m *MatchHeaderRE) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
	if *m == nil {
		*m = make(map[string]*MatchRegexp)
	}
	for d.Next() {
		var first, second, third string
		if !d.Args(&first, &second) {
			return d.ArgErr()
		}
		var name, field, val string
		if d.Args(&third) {
			name = first
			field = second
			val = third
		} else {
			field = first
			val = second
		}
		(*m)[field] = &MatchRegexp{Pattern: val, Name: name}
		if d.NextBlock(0) {
			return d.Err("malformed header_regexp matcher: blocks are not supported")
		}
	}
	return nil
}
func ( m * MatchHeaderRE ) UnmarshalCaddyfile ( d * caddyfile . Dispenser ) error { if * m == nil { * m = make ( map [ string ] * MatchRegexp ) } for d . Next ( ) { var first , second , third string if ! d . Args ( & first , & second ) { return d . ArgErr ( ) } var name , field , val string if d . Args ( & third ) { name = first field = second val = third } else { field = first val = second } ( * m ) [ field ] = & MatchRegexp { Pattern : val , Name : name } if d . NextBlock ( 0 ) { return d . Err ( " " ) } } return nil }
UnmarshalCaddyfile implements caddyfile.Unmarshaler.
UnmarshalCaddyfile implements caddyfile . Unmarshaler .