func GetRev(resp *http.Response) (rev string, err error) {
	if err = ResponseError(resp); err != nil {
		return "", err
	}
	if _, ok := resp.Header["Etag"]; !ok {
		return "", errors.New("no Etag header found")
	}
	rev = resp.Header.Get("Etag")
	// trim quote marks (")
	return rev[1 : len(rev)-1], nil
}
// GetRev extracts the revision from the response's Etag header
GetRev extracts the revision from the response's Etag header
// GetRev extracts the revision from the response ' s Etag header
func GetRev(resp *http.Response) (rev string, err error) {
	if err = ResponseError(resp); err != nil {
		return "", err
	}
	if _, ok := resp.Header["Etag"]; !ok {
		return "", errors.New("no Etag header found")
	}
	rev = resp.Header.Get("Etag")
	return rev[1 : len(rev)-1], nil
}
func GetRev ( resp * http . Response ) ( rev string , err error ) { if err = ResponseError ( resp ) ; err != nil { return " " , err } if _ , ok := resp . Header [ " " ] ; ! ok { return " " , errors . New ( " " ) } rev = resp . Header . Get ( " " ) return rev [ 1 : len ( rev ) - 1 ] , nil }
GetRev extracts the revision from the response's Etag header
GetRev extracts the revision from the response ' s Etag header
// trim quote marks (")