Handles.get constructor

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

Constructor with the HTTP GET method.

The 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.get(this.pattern, {String? pipeline, int? priority})
    : httpMethod = 'GET',
      pipeline = pipeline ?? ServerPipeline.defaultName,
      priority = priority ?? 0;