The required boundary values on the real axis are zero to the left of the origin and one to the right. The bounded harmonic function with those values is the upper-half-plane harmonic measure of the positive half-axis,
Indeed, is harmonic in the upper half-plane, and the displayed function tends to on the positive half-axis and to on the negative half-axis. The uniqueness of bounded solutions of the Dirichlet problem identifies it with the Brownian exit probability.