http: add a method dispatcher