Let $X$ be a quasi-category. (i.e. a simplicial set satisfying the weak Kan extension condition). Given two 'objects' $a,b\in X_0$ in $X$, one defines the mapping space $X(a,b)$ to be the pullback of $$ X^{\Delta^1}\to X^{\partial\Delta^1}\cong X\times X $$
Along the map $pt\to X\times X$ that takes the point to the pair $(a,b)$. It is (apparently) well known that $X(a,b)$ is always a Kan complex (provided $X$ is a quasi-category as we assumed). How does one prove this? I've seen this stated in several papers of Joyal, but without a proof and with references to some unfindable sources. I am sure this also appears somewhere in Lurie's HTT , but I got lost in all the different mapping space objects that he uses. An outline of the argument or a readable self contained reference would be very much appreciated.
