Small optimization: Use InetHeaderMap instead of string[string] in the rest generator