Handles.request constructor

const Handles.request(
  1. String? httpMethod,
  2. String? pattern, {
  3. String? pipeline,
  4. int? priority,
})

Constructor with a specific HTTP method.

The httpMethod is the name of the HTTP method, and pattern is the string representation of the pattern to match. The optional pipeline name identifies the pipeline the rule is for, and priority controls the order in which the rule is added to the pipeline.

Implementation

const Handles.request(this.httpMethod, this.pattern,
    {String? pipeline, int? priority})
    : pipeline = pipeline ?? ServerPipeline.defaultName,
      priority = priority ?? 0;