func (c *Client) ListHeaders(i *ListHeadersInput) ([]*Header, error) {
	if i.Service == "" {
		return nil, ErrMissingService
	}

	if i.Version == 0 {
		return nil, ErrMissingVersion
	}

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

	var bs []*Header
	if err := decodeBodyMap(resp.Body, &bs); err != nil {
		return nil, err
	}
	sort.Stable(headersByName(bs))
	return bs, nil
}
// ListHeaders returns the list of headers for the configuration version.
ListHeaders returns the list of headers for the configuration version.
// ListHeaders returns the list of headers for the configuration version .
func (c *Client) ListHeaders(i *ListHeadersInput) ([]*Header, error) {
	if i.Service == "" {
		return nil, ErrMissingService
	}
	if i.Version == 0 {
		return nil, ErrMissingVersion
	}
	path := fmt.Sprintf("/service/%s/version/%d/header", i.Service, i.Version)
	resp, err := c.Get(path, nil)
	if err != nil {
		return nil, err
	}
	var bs []*Header
	if err := decodeBodyMap(resp.Body, &bs); err != nil {
		return nil, err
	}
	sort.Stable(headersByName(bs))
	return bs, nil
}
func ( c * Client ) ListHeaders ( i * ListHeadersInput ) ( [ ] * Header , error ) { if i . Service == " " { return nil , ErrMissingService } if i . Version == 0 { return nil , ErrMissingVersion } path := fmt . Sprintf ( " " , i . Service , i . Version ) resp , err := c . Get ( path , nil ) if err != nil { return nil , err } var bs [ ] * Header if err := decodeBodyMap ( resp . Body , & bs ) ; err != nil { return nil , err } sort . Stable ( headersByName ( bs ) ) return bs , nil }
ListHeaders returns the list of headers for the configuration version.
ListHeaders returns the list of headers for the configuration version .