GET class final

Represents an HTTP GET route.

Use GET when registering handlers that retrieve or display data without modifying server state.

Example

final router = RouterBuilder()
  ..get('/hello', (req) => 'Hello World!');

This defines a GET route responding to /hello.

Inheritance

Constructors

GET(String path)
Represents an HTTP GET route.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
method HttpMethod
The HTTP method (e.g., GET, POST) that this route responds to.
finalinherited
path String
The URI path associated with this route.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

equalizedProperties() List<Object?>
Mixin-style contract for value-based equality, hashCode, and toString.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited