Enumerations

The following enumerations are available globally.

  • The parameters for configuring the cookies used to send the session IDs to the clients.

    Usage Example:

    let session = Session(secret: "Something very secret", cookie: [.name("mySessionId")])
    router.all(middleware: session)
    

    In the example, an instance of Session is created with a custom value for the CookieParameter name.

    See more

    Declaration

    Swift

    public enum CookieParameter
  • An error indicating the failure of an operation involving the use of a session Store.

    See more

    Declaration

    Swift

    public enum StoreError : Swift.Error