glance/util.py
提供 glance 使用的一些工具函数
def image_meta_to_http_headers(image_meta)
将元数据解析填充到HTTP头中,填充是x-image-meta-property-和x-image-meta-def inject_image_meta_into_headers(response, image_meta)
封装了image_meta_to_http_headers(image_meta),添加属性到response.headersdef get_image_meta_from_headers(response)
解析HTTP头,提取x-image-meta-property-和x-image-meta-信息def has_body(req)
检测一个请求是否含有body