diff --git a/Sources/Request/Request/Request.swift b/Sources/Request/Request/Request.swift index f4c714f..5bffdcb 100644 --- a/Sources/Request/Request/Request.swift +++ b/Sources/Request/Request/Request.swift @@ -149,6 +149,12 @@ public struct AnyRequest where ResponseType: Decodable { } } +extension AnyRequest: Identifiable { + public var id: String { + buildSession().request.url!.absoluteString + } +} + extension AnyRequest: Equatable { public static func == (lhs: AnyRequest, rhs: AnyRequest) -> Bool { let lhsSession = lhs.buildSession()