func (c *HTTPRESTClient) composeHeaders(headers http.Header) http.Header {
	result := make(http.Header)
	// Consume the new headers.
	for k, vs := range headers {
		for _, v := range vs {
			result.Add(k, v)
		}
	}
	// Add the client's headers as well.
	for k, vs := range c.headers {
		for _, v := range vs {
			result.Add(k, v)
		}
	}
	return result
}
// composeHeaders creates a new set of headers from scratch.
composeHeaders creates a new set of headers from scratch.
// composeHeaders creates a new set of headers from scratch .
func (c *HTTPRESTClient) composeHeaders(headers http.Header) http.Header {
	result := make(http.Header)
	for k, vs := range headers {
		for _, v := range vs {
			result.Add(k, v)
		}
	}
	for k, vs := range c.headers {
		for _, v := range vs {
			result.Add(k, v)
		}
	}
	return result
}
func ( c * HTTPRESTClient ) composeHeaders ( headers http . Header ) http . Header { result := make ( http . Header ) for k , vs := range headers { for _ , v := range vs { result . Add ( k , v ) } } for k , vs := range c . headers { for _ , v := range vs { result . Add ( k , v ) } } return result }
composeHeaders creates a new set of headers from scratch.
composeHeaders creates a new set of headers from scratch .
// Consume the new headers. // Add the client's headers as well.