func (c *Client) DeleteHeader(i *DeleteHeaderInput) error {
	if i.Service == "" {
		return ErrMissingService
	}

	if i.Version == 0 {
		return ErrMissingVersion
	}

	if i.Name == "" {
		return ErrMissingName
	}

	path := fmt.Sprintf("/service/%s/version/%d/header/%s", i.Service, i.Version, url.PathEscape(i.Name))
	resp, err := c.Delete(path, nil)
	if err != nil {
		return err
	}

	var r *statusResp
	if err := decodeBodyMap(resp.Body, &r); err != nil {
		return err
	}
	if !r.Ok() {
		return ErrNotOK
	}
	return nil
}
// DeleteHeader deletes the given header version.
DeleteHeader deletes the given header version.
// DeleteHeader deletes the given header version .
func (c *Client) DeleteHeader(i *DeleteHeaderInput) error {
	if i.Service == "" {
		return ErrMissingService
	}
	if i.Version == 0 {
		return ErrMissingVersion
	}
	if i.Name == "" {
		return ErrMissingName
	}
	path := fmt.Sprintf("/service/%s/version/%d/header/%s", i.Service, i.Version, url.PathEscape(i.Name))
	resp, err := c.Delete(path, nil)
	if err != nil {
		return err
	}
	var r *statusResp
	if err := decodeBodyMap(resp.Body, &r); err != nil {
		return err
	}
	if !r.Ok() {
		return ErrNotOK
	}
	return nil
}
func ( c * Client ) DeleteHeader ( i * DeleteHeaderInput ) error { if i . Service == " " { return ErrMissingService } if i . Version == 0 { return ErrMissingVersion } if i . Name == " " { return ErrMissingName } path := fmt . Sprintf ( " " , i . Service , i . Version , url . PathEscape ( i . Name ) ) resp , err := c . Delete ( path , nil ) if err != nil { return err } var r * statusResp if err := decodeBodyMap ( resp . Body , & r ) ; err != nil { return err } if ! r . Ok ( ) { return ErrNotOK } return nil }
DeleteHeader deletes the given header version.
DeleteHeader deletes the given header version .