According to the Didache:
"Chapter 7. Concerning Baptism. And concerning baptism, baptize this way: Having first said all these things, baptize into the name of the Father, and of the Son, and of the Holy Spirit, in living water. But if you have no living water, baptize into other water; and if you cannot do so in cold water, do so in warm. But if you have neither, pour out water three times upon the head into the name of Father and Son and Holy Spirit. But before the baptism let the baptizer fast, and the baptized, and whoever else can; but you shall order the baptized to fast one or two days before."