def head_container(url, token, container, http_conn=None, headers=None, service_token=None):
 if http_conn:
  (parsed, conn) = http_conn
 else:
  (parsed, conn) = http_connection(url)
 path = ('%s/%s' % (parsed.path, quote(container)))
 method = 'HEAD'
 req_headers = {'X-Auth-Token': token}
 if service_token:
  req_headers['X-Service-Token'] = service_token
 if headers:
  req_headers.update(headers)
 conn.request(method, path, '', req_headers)
 resp = conn.getresponse()
 body = resp.read()
 http_log((('%s%s' % (url.replace(parsed.path, ''), path)), method), {'headers': req_headers}, resp, body)
 if ((resp.status < 200) or (resp.status >= 300)):
  raise ClientException.from_response(resp, 'Container HEAD failed', body)
 resp_headers = resp_header_dict(resp)
 return resp_headers

def head_container ( url , token , container , http_conn = None , headers = None , service_token = None ) : if http_conn : ( parsed , conn ) = http_conn else : ( parsed , conn ) = http_connection ( url ) path = ( '%s/%s' % ( parsed . path , quote ( container ) ) ) method = 'HEAD' req_headers = { 'X-Auth-Token' : token } if service_token : req_headers [ 'X-Service-Token' ] = service_token if headers : req_headers . update ( headers ) conn . request ( method , path , '' , req_headers ) resp = conn . getresponse ( ) body = resp . read ( ) http_log ( ( ( '%s%s' % ( url . replace ( parsed . path , '' ) , path ) ) , method ) , { 'headers' : req_headers } , resp , body ) if ( ( resp . status < 200 ) or ( resp . status >= 300 ) ) : raise ClientException . from_response ( resp , 'Container HEAD failed' , body ) resp_headers = resp_header_dict ( resp ) return resp_headers
get container stats .