  The Herglotz representation of holomorphic functions with positive real part
and Carath\'eodory's theorem on approximation by inner functions are two
well-known classical results in the theory of holomorphic functions on the unit
disc. We show that they are equivalent. On multiply connected domains, a
version of Heglotz representation is known. Carath\'eodory's approximation was
not known. We formulate and prove it and then show that it is equivalent to the
known Herglotz representation. Additionally, it also enables us to prove a new
Heglotz representation in the style of Koranyi and Pukanszky. Of particular
interest is the fact that the scaling technique of the disc is replaced by the
Carath\'eodory's approximation theorem while proving this new Herglotz
representation.
  Motivated by Koranyi and Pukanszky, the Herglotz representation is also
proved in very general settings in several variables which encompasses many
known generalizations of this theorem. This brings out the connection with
Szeg\"o kernels of a large class of domains in $\mathbb C^d$. A restriction on
the admissible measures arises naturally (as had been observed by Koranyi and
Pukanszky in the case of the polydisc). We clarify the relation of this
restriction with the Szeg\"o kernel. A significant role is played by the
various notions of the Hardy space.
