Method constructor

const Method(
  1. String method,
  2. String path
)

Creates a new HTTP method annotation with the specified method and path.

This is the base class for all HTTP method annotations like GET, POST, etc.

  • method - The HTTP method (e.g., 'GET', 'POST', 'PUT', etc.)
  • path - The relative or absolute path for the endpoint

Implementation

const Method(
  this.method,
  this.path,
);