def get_capabilities(http_conn):
 (parsed, conn) = http_conn
 headers = {'Accept-Encoding': 'gzip'}
 conn.request('GET', parsed.path, '', headers)
 resp = conn.getresponse()
 body = resp.read()
 http_log((parsed.geturl(), 'GET'), {'headers': headers}, resp, body)
 if ((resp.status < 200) or (resp.status >= 300)):
  raise ClientException.from_response(resp, 'Capabilities GET failed', body)
 resp_headers = resp_header_dict(resp)
 return parse_api_response(resp_headers, body)

def get_capabilities ( http_conn ) : ( parsed , conn ) = http_conn headers = { 'Accept-Encoding' : 'gzip' } conn . request ( 'GET' , parsed . path , '' , headers ) resp = conn . getresponse ( ) body = resp . read ( ) http_log ( ( parsed . geturl ( ) , 'GET' ) , { 'headers' : headers } , resp , body ) if ( ( resp . status < 200 ) or ( resp . status >= 300 ) ) : raise ClientException . from_response ( resp , 'Capabilities GET failed' , body ) resp_headers = resp_header_dict ( resp ) return parse_api_response ( resp_headers , body )
list all capabilities on the system args: image : the path to the root directory of an offline windows image .