Extend ServeMux to register method handler

By Audren Bouëssel du Bourg