Instance Methodvapor 4.114.1Vapor
get(using:logger:on:)
Downloads the resource.
func get(using client: Client, logger: Logger? = nil, on eventLoop: EventLoop) -> EventLoopFuture<T>
Downloads the resource.
func get(using client: Client, logger: Logger? = nil, on eventLoop: EventLoop) -> EventLoopFuture<T>
s5Vapor13EndpointCacheC3get5using6logger2on7NIOCore15EventLoopFutureCyxGAA6Client_p_7Logging6LoggerVSgAH0iJ0_ptF
What are these?8TRGN
import Vapor
Vapor is a framework for building server applications, APIs and websites in Swift. It provides a safe, performant and scalable foundation for building large complex backends.
final class EndpointCache<T> where T : Decodable, T : Sendable
Handles the complexities of HTTP caching.
protocol Client : Sendable
protocol EventLoop : EventLoopGroup
An EventLoop processes IO / tasks in an endless loop for Channel
s until it’s closed.
final class EventLoopFuture<Value>
Holder for a result that will be provided later.
init(uri: URI)
The designated initializer.
func get(on request: Request, logger: Logger? = nil) -> EventLoopFuture<T>
Downloads the resource.