This is a nice problem for illustrating the connection between imaginary exponentials and the circular functions. We are given that $ \ z \ = \ cis \ \theta \ = \ e^{ \ i · \theta} \ \ , \ $ so we can manipulate the ratio
$$ \frac{1 \ + \ z}{1 \ - \ z} \ \ = \ \ \frac{1 \ + \ e^{ \ i · \theta}}{1 \ - \ e^{ \ i · \theta}} \ · \ \frac{ e^{ \ -i \ · \ \theta /2}}{ e^{ \ -i \ · \ \theta /2}} \ \ = \ \ \frac{e^{ \ -i \ · \ \theta /2} \ + \ e^{ \ i \ · \ \theta /2}}{e^{ \ -i \ · \ \theta /2} \ - \ e^{ \ i \ · \ \theta /2}} \ \ . $$
In terms of imaginary exponentials, the sine and cosine functions are
$$ 2i·\sin \theta \ \ = \ \ e^{ \ i \ · \ \theta } \ - \ e^{ \ -i \ · \ \theta } \ \ \ , \ \ \ 2·\cos \theta \ \ = \ \ e^{ \ i \ · \ \theta} \ + \ e^{ \ -i \ · \ \theta } \ \ , $$
from which it follows that
$$ \frac{1 \ + \ z}{1 \ - \ z} \ \ = \ \ \frac{2·\cos (\theta / 2)}{-2i· \sin (\theta / 2)} \ \ = \ \ \frac{1}{-i} · \cot( \theta / 2) \ \ = \ \ i · \cot( \theta / 2) \ \ . $$
If you are instead familiar with the hyperbolic sine and cosine functions,
$$ 2 ·\sinh \theta \ \ = \ \ e^{ \ \theta } \ - \ e^{ \ - \theta } \ \ \ , \ \ \ 2·\cosh \theta \ \ = \ \ e^{ \ \theta} \ + \ e^{ \ - \theta } \ \ , $$
you will obtain
$$ \frac{1 \ + \ z}{1 \ - \ z} \ \ = \ \ \frac{2·\cosh ( \ i·\theta / 2 \ )}{-2· \sinh ( \ i·\theta / 2 \ )} $$
and will need the hyperbolic-circular identities $ \ \sinh (\theta) \ = \ -i·\sin(i·\theta) \ \ \ , \ \ \ \cosh (\theta) \ = \ \cos(i·\theta) \ $ to complete the derivation:
$$ \frac{1 \ + \ z}{1 \ - \ z} \ \ = \ \ \frac{2·\cos ( \ i^2 · \theta / 2 \ )}{-2· [ \ -i·\sin ( \ i^2 · \theta / 2 \ ) \ ]} \ \ = \ \ \frac{\cos ( \ - \theta / 2 \ )}{i·\sin ( \ - \theta / 2 \ ) } \ \ = \ \ \frac{\cos ( \theta / 2 )}{-i·\sin ( \theta / 2 ) } \ \ , $$
leading to the same conclusion as before.