@@ -39,6 +39,9 @@ public struct ConsoleListDisplaySettings: Hashable, Codable {
39
39
/// If task description is available, show it instead of the `URL`.
40
40
public var showTaskDescription = false
41
41
42
+ /// Show HTTP method when available.
43
+ public var showMethod = true
44
+
42
45
/// Defines what components to display in the list. By default, shows
43
46
/// only path.
44
47
public var components : Set < URLComponent > = [ . path]
@@ -59,13 +62,11 @@ public struct ConsoleListDisplaySettings: Hashable, Codable {
59
62
public var lineLimit : Int = 1
60
63
}
61
64
62
- public enum URLComponent : String , Identifiable , CaseIterable , Codable {
65
+ public enum URLComponent : String , CaseIterable , Codable {
63
66
case scheme, user, password, host, port, path, query, fragment
64
-
65
- public var id : URLComponent { self }
66
67
}
67
68
68
- public enum TaskField : Sendable , Codable , Hashable , Identifiable {
69
+ public enum TaskField : Sendable , Codable , Hashable {
69
70
case method
70
71
case requestSize
71
72
case responseSize
@@ -75,10 +76,8 @@ public struct ConsoleListDisplaySettings: Hashable, Codable {
75
76
case statusCode
76
77
case taskType
77
78
case taskDescription
78
- case requestHeaderField( key: String )
79
- case responseHeaderField( key: String )
80
-
81
- public var id : TaskField { self }
79
+ case requestHeaderField( String )
80
+ case responseHeaderField( String )
82
81
}
83
82
84
83
public init ( ) { }
0 commit comments