Let $g(z)$ be a holomorphic function on the closed unit disc $\overline {\mathbb D}$
Is the function $ g_1(w) = 1/2\pi \int_0^{2\pi} \operatorname{Re}(g(e^{i\theta}))(e^{i\theta} + w)/(e^{i\theta} - w) \, d\theta $ holomorphic on the open unit disc $ {\mathbb D}$ ?
From the context (see below) I presume that it is but I don't see how to prove this.
Context
This is part of a proof here on p.29 :
https://su.diva-portal.org/smash/get/diva2:1069992/FULLTEXT01.pdf
to establish the Riesz-Herglotz representation of a holomorphic function on ${\mathbb D}$ with a non-negative real part.
I follow the proof up to establishing an expression for $w \in \mathbb D,$ $$ g(w) = \frac 1 {2\pi} \int_0^{2\pi} g(e^{i\theta}) \operatorname{Re} \left( \frac{e^{i\theta} + w}{e^{i\theta} - w}\right) \, d\theta $$
I can also see that $\operatorname{Re}(g(w)) = \operatorname{Re}(g_1(w))$ so if $g_1$ is holomorphic one can then say that $g, g_1$ differ only by a complex constant.
Then I could continue to follow the proof. Help would be appreciated.
Theorem 7 in Rudin's RCA (it is actually Theorem 10.7 in my Indian edition of the book) immediately tells you that $g_1$ is holomorphic in $D$. Here are the details: let $g_2(w)=\frac 1 {2\pi }\int_0^{2\pi }\frac 1 {e^{i\theta }-w} d\mu (\theta )$ where $d\mu (\theta ) =Re (g(e^{i\theta )})e^{i\theta } \, d\theta$ and $g_3(w)=\frac 1 {2\pi }\int_0^{2\pi }\frac 1 {e^{i\theta }-w} d\nu (\theta )$ where $d\nu (\theta ) =Re (g(e^{i\theta )}) \, d\theta$. Then $g_1(w)=g_2(w)+wg_3(w)$. $g_2$ and $g_3$ are both holomorphic by the theorem in Rudin's book.