Methods class
A utility class that provides constants and predefined lists for various HTTP request methods. This class includes constants for common HTTP methods and provides convenience lists for frequently used method combinations. It is useful for standardizing and managing HTTP method strings throughout an application.
Constructors
- Methods()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Constants
-
ALL
→ const List<
String> - A list of all HTTP methods supported by this class.
- CONNECT → const String
- The HTTP CONNECT method.
- DELETE → const String
- The HTTP DELETE method.
-
DELETE_ONLY
→ const List<
String> - GET → const String
- The HTTP GET method.
-
GET_ONLY
→ const List<
String> -
GET_POST
→ const List<
String> - A list of commonly used HTTP methods for request submissions.
- HEAD → const String
- The HTTP HEAD method.
- INSERT → const String
- The HTTP INSERT method (non-standard, generally used for custom purposes).
-
INSERT_ONLY
→ const List<
String> -
ONLY_DELETE
→ const List<
String> - A list containing only the HTTP DELETE method.
-
ONLY_GET
→ const List<
String> - A list containing only the HTTP GET method.
-
ONLY_INSERT
→ const List<
String> - A list containing only the HTTP INSERT method.
-
ONLY_POST
→ const List<
String> - A list containing only the HTTP POST method.
-
ONLY_PUT
→ const List<
String> - A list containing only the HTTP PUT method.
- OPTIONS → const String
- The HTTP OPTIONS method.
- PATCH → const String
- The HTTP PATCH method.
- POST → const String
- The HTTP POST method.
-
POST_ONLY
→ const List<
String> - PUT → const String
- The HTTP PUT method.
-
PUT_ONLY
→ const List<
String> - TRACE → const String
- The HTTP TRACE method.