on method
Implementation
MethodPrepare on(String method, Handler handler,
[List<Middleware>? pipeline, List<String>? acceptedContentType]) {
var i = _path.methods[method] = PathMethod(
[...parentPipeline, ...?pipeline],
handler: handler,
acceptedContentType: acceptedContentType ?? [],
);
return MethodPrepare(i);
}