perfect.org
Documentation
|
API Documentation
PerfectLib
Perfect-CouchDB
Perfect-CURL
Perfect-Filemaker
Perfect-GoogleAnalytics-MeasurementProtocol
Perfect-HTTP
Perfect-HTTPServer
Perfect-Logger
Perfect-MongoDB
Perfect-Mustache
Perfect-MySQL
Perfect-MariaDB
Perfect-Net
Perfect-Notifications
Perfect-PostgreSQL
Perfect-Redis
Perfect-RequestLogger
Perfect-Session
Perfect-Session-SQLite
Perfect-Session-CouchDB
Perfect-Session-MySQL
Perfect-Session-PostgreSQL
Perfect-SQLite
Perfect-Thread
Perfect-WebSockets
Perfect-XML
Perfect-Zip
Turnstile-Perfect
Perfect-Turnstile-CouchDB
Perfect-Turnstile-MySQL
Perfect-Turnstile-PostgreSQL
Perfect-Turnstile-SQLite
StORM
CouchDB-StORM
MySQL-StORM
Postgres-StORM
SQLite-StORM
Module: Perfect-Session-MySQL
struct
SessionMySQLDriver
var
requestFilter: (HTTPRequestFilter, HTTPFilterPriority)
var
responseFilter: (HTTPResponseFilter, HTTPFilterPriority)
func
init()
class
SessionPostgresFilter
func
init()
extension
SessionPostgresFilter
func
filter(request: HTTPRequest, response: HTTPResponse, callback: (HTTPRequestFilterResult) -> ())
extension
SessionPostgresFilter
func
filterHeaders(response: HTTPResponse, callback: (HTTPResponseFilterResult) -> ())
Called once before headers are sent to the client.
func
filterBody(response: HTTPResponse, callback: (HTTPResponseFilterResult) -> ())
Called zero or more times for each bit of body data which is sent to the client.
struct
MySQLSessionConnector
static var
host: String = "localhost"
static var
username: String = ""
static var
password: String = ""
static var
database: String = "perfect_sessions"
static var
table: String = "sessions"
static var
port: Int = 5432
struct
MySQLSessions
func
init()
Initializes the Session Manager. No config needed!
func
save(session: PerfectSession)
func
start(_ request: HTTPRequest) -> PerfectSession
func
destroy(token: String)
Deletes the session for a session identifier.
func
resume(token: String) -> PerfectSession