You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
435 B
Dart
15 lines
435 B
Dart
/// HTTP verb enum used internally by [ApiClient._call] to dispatch to the
|
|
/// correct [Dio] method.
|
|
///
|
|
/// The public [ApiClient] API exposes **named methods** (`get`, `post`, …)
|
|
/// rather than accepting an [HttpMethod] directly. The enum is kept as a
|
|
/// clearly-typed pivot inside [ApiClient._call] so all request logic lives in
|
|
/// one place with zero duplication.
|
|
enum HttpMethod {
|
|
get,
|
|
post,
|
|
put,
|
|
patch,
|
|
delete,
|
|
}
|