As one step in Ahlfors derivation of Stirling's formula (2nd edition pages 199-200), he uses residues to evaluate the integral $$\int\limits_{\xi = n+1/2} \frac{d\zeta}{\left|\zeta +z\right|^2}$$
over a vertical line $\xi = n + \frac{1}{2}$ where $\zeta = \xi + i\eta$, $z$ is a fixed point with positive real part, and $n$ is a positive integer. Could someone explain how residues could be used in this case,since the contour is not closed? To set the context, Ahlfors has already applied the residue theorem over a rectangle, of which the vertical line $\xi = n + \frac{1}{2}$ makes up the right side.