Record
public struct Record
extension Record: Codable
A record represents a full roundtrip of a URLRequest and it’s response.
-
The identifier of the record. As long as the identifier is the same two Records are assumed to be the same.
Declaration
Swift
public var identifier: UUID
-
The originalRequest is the request passed on to the URL loading system. The originalRequest should not be changed by any floret.
Declaration
Swift
public var originalRequest: URLRequest
-
The designatedRequest will initially be the same as the originalRequest but can be changed by every Floret. The designatedRequest is the one that will be executed in the end.
Declaration
Swift
public var designatedRequest: URLRequest
-
The requestStarted Date is set after all florets finished their
willRequest
function.Declaration
Swift
public var requestStarted: Date?
-
The responseReceived Date is set after all florets finished their
didRespond
function.Declaration
Swift
public var responseReceived: Date?