def headers_to_object_info(headers, status_int=HTTP_OK):
 (headers, meta, sysmeta) = _prep_headers_to_info(headers, 'object')
 transient_sysmeta = {}
 for (key, val) in headers.iteritems():
  if is_object_transient_sysmeta(key):
   key = strip_object_transient_sysmeta_prefix(key.lower())
   transient_sysmeta[key] = val
 info = {'status': status_int, 'length': headers.get('content-length'), 'type': headers.get('content-type'), 'etag': headers.get('etag'), 'meta': meta, 'sysmeta': sysmeta, 'transient_sysmeta': transient_sysmeta}
 return info

def headers_to_object_info ( headers , status_int = HTTP_OK ) : ( headers , meta , sysmeta ) = _prep_headers_to_info ( headers , 'object' ) transient_sysmeta = { } for ( key , val ) in headers . iteritems ( ) : if is_object_transient_sysmeta ( key ) : key = strip_object_transient_sysmeta_prefix ( key . lower ( ) ) transient_sysmeta [ key ] = val info = { 'status' : status_int , 'length' : headers . get ( 'content-length' ) , 'type' : headers . get ( 'content-type' ) , 'etag' : headers . get ( 'etag' ) , 'meta' : meta , 'sysmeta' : sysmeta , 'transient_sysmeta' : transient_sysmeta } return info
construct a cacheable dict of object info based on response headers .