In a model category, a map f:X→Bf: X \to B is a homotopy equivalence if there is a map in the other direction such that both compositions are homotopic to the identity.
nLab page on Homotopy equivalence