parse static method

HttpRule parse(
  1. String template,
  2. RequestMethod method, {
  3. String? body,
})

Implementation

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