If I have two functions $f : X \to Y$ and $g : X \to Y$, they are homotopically equivalent if and only if there exists a continuous function $h : [0,1] \times X \to Y$ so that $h(0, x) = y \leftrightarrow f(x) = y$ and $h(1, x) = y \leftrightarrow g(x) = y$. This is the Wikipedia definition.
However, intuitively, a homotopy is a "path between functions". I think of a path $p$ as just a continuous function $p : [0, 1] \to Z$ in some topological space $Z$.
Is there a nice topology we can impose on $X \to Y$ so that homotopies are just paths in $X \to Y$ (i.e. $[0,1] \to (X \to Y))$.
I asked a question here about topologies we can give to the set of functions from $X \to X$ and the answer I got in the comments was the product topology, but I am not convinced that is a good fit here. IIUC the product topology on $X \to Y$ would ignore the topological structure of $X$ and essentially treat it as an index set.