I'm studying a paper where an integral of similar form to this one appears:
$$\int_{-\infty}^{\infty}\text{sech}^2(x)\cos(x)\,dx$$
The authors only show the result, which involves a hyperbolic cosecant function with a $\pi$ in its argument. So, I assume that they considered a closed path and used the residuals theorem. I know that the poles of the integrand function are $z=i\left(\frac{\pi}{2}+k\pi\right),\,k\in\mathbb{Z}$. I tried to solve the integral by myself, but I don't know which path to choose. Do you have any hints to solve it?
Hint:
Use $\operatorname{Re} e^{ix} =\cos x$. Then choose a contour that encircles the upper half-plane.