Immunity to Chlamydia trachomatis is mediated by T helper 1 cells through IFN-gamma-dependent and -independent pathways.