Dogs can be a pain, normally they’re not going to bite you as long as you just maintain speed and carry on. Although sometimes it’s just easiest for the owner as well to just stop then the dog will just sit there and look at you or jump up or down (from my personal experiences dependant on dog nature of course).
My recent encounter was a staffie looking type dog that I had no option but to stop on a canal otherwise I’d have run it over then it just evilly barked and ran around my bike and the owner managed to get hold of it, but the worry is that is the dog going to bite you and is it worth using a tool like a hand pump for defence in situations like that.