def gen_resp_headers(info, is_deleted=False):
 headers = {'X-Backend-Timestamp': Timestamp(info.get('created_at', 0)).internal, 'X-Backend-PUT-Timestamp': Timestamp(info.get('put_timestamp', 0)).internal, 'X-Backend-DELETE-Timestamp': Timestamp(info.get('delete_timestamp', 0)).internal, 'X-Backend-Status-Changed-At': Timestamp(info.get('status_changed_at', 0)).internal, 'X-Backend-Storage-Policy-Index': info.get('storage_policy_index', 0)}
 if (not is_deleted):
  headers.update({'X-Container-Object-Count': info.get('object_count', 0), 'X-Container-Bytes-Used': info.get('bytes_used', 0), 'X-Timestamp': Timestamp(info.get('created_at', 0)).normal, 'X-PUT-Timestamp': Timestamp(info.get('put_timestamp', 0)).normal})
 return headers

def gen_resp_headers ( info , is_deleted = False ) : headers = { 'X-Backend-Timestamp' : Timestamp ( info . get ( 'created_at' , 0 ) ) . internal , 'X-Backend-PUT-Timestamp' : Timestamp ( info . get ( 'put_timestamp' , 0 ) ) . internal , 'X-Backend-DELETE-Timestamp' : Timestamp ( info . get ( 'delete_timestamp' , 0 ) ) . internal , 'X-Backend-Status-Changed-At' : Timestamp ( info . get ( 'status_changed_at' , 0 ) ) . internal , 'X-Backend-Storage-Policy-Index' : info . get ( 'storage_policy_index' , 0 ) } if ( not is_deleted ) : headers . update ( { 'X-Container-Object-Count' : info . get ( 'object_count' , 0 ) , 'X-Container-Bytes-Used' : info . get ( 'bytes_used' , 0 ) , 'X-Timestamp' : Timestamp ( info . get ( 'created_at' , 0 ) ) . normal , 'X-PUT-Timestamp' : Timestamp ( info . get ( 'put_timestamp' , 0 ) ) . normal } ) return headers
convert container info dict to headers .