Enumerationhummingbird 2.15.0Hummingbird
Value
Cache control directive
enum Value
Original CacheControl directive value was a fixed enum. This has been replaced with CacheControl.CacheControlValue which is more extensible
Cache control directive
enum Value
Original CacheControl directive value was a fixed enum. This has been replaced with CacheControl.CacheControlValue which is more extensible
import Hummingbird
struct CacheControl
Associates cache control values with filename
case noStore
case noCache
case `private`
case `public`
case maxAge(Int)
case mustRevalidate
init(_ entries: [(MediaType, [CacheControl.CacheControlValue])])
Initialize cache control
init(_ entries: [(MediaType, [CacheControl.Value])])
Initialize cache control
func getCacheControlHeader(for file: String) -> String?
Get the Cache-Control header for a file
struct CacheControlValue
Cache control directive
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Sendable
A thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.
var description: String { get }