Homotopy theory of function spaces is a healthy subfield of homotopy theory. See e.g. recent Oberwolfach report from a meeting on the subject.
If you share what $X,Y$ you are interested in, I may be able to say more, even though I am by no means an expert.