Subscribe Below
Storage
now has subscript methods for accessing it's values should you decide to use the request's private storage
instance instead of the .get
and .set
methods.
Request
has .storage
method to get it's private storage instance instead of having to fetch it manually.
let storage = try request.storage()
storage[key] // type `Any?`
storage[key] as Type? // type `Type?`
storage[key, as: Type.self] // type `Type?`