an instance of dispatch is a callable object and can be configured with as many rules as you wish.
dispatch实例是个可调用对象,可以用数量不限的规则来配置它。
the first item in each tuple is a callable object (in this case a method pointer) and the second is a http request type that the method should be called for.
每个元组的第一项是可调用对象(在这里是一个方法指针),第二项是http请求类型,这种请求类型可以调用该方法。
if a callable object is given, it acts as a callback for a match.
如果给出的是一个可调用对象,它就像匹配的回调函数一样工作。