10 lines
186 B
Dart
10 lines
186 B
Dart
|
enum HttpMethod {
|
||
|
get, post, put, delete, patch
|
||
|
}
|
||
|
|
||
|
extension HttpMethodString on HttpMethod{
|
||
|
String name(){
|
||
|
return this.toString().split('.').last.toUpperCase();
|
||
|
}
|
||
|
}
|