def header_table_size(table):
 return sum((((32 + len(name)) + len(value)) for (name, value) in table))

def header_table_size ( table ) : return sum ( ( ( ( 32 + len ( name ) ) + len ( value ) ) for ( name , value ) in table ) )
calculates the size of the header table as defined by the http/2 specification .