parse static method
Implementation
static HttpRule parse(String template, RequestMethod method, {String? body}) {
return HttpRule(
method: method,
pathTemplate: template,
segments: _parsePathTemplate(template),
body: body,
);
}
static HttpRule parse(String template, RequestMethod method, {String? body}) {
return HttpRule(
method: method,
pathTemplate: template,
segments: _parsePathTemplate(template),
body: body,
);
}