Skip to content

class Athena::HTTP::Session::Factory
inherits Reference #

Creates the AHTTP::Session of the current request, using the provided storage_factory.

Constructors#

.new(request_store : AHTTP::RequestStore, storage_factory : AHTTP::Session::Storage::FactoryInterface, usage_reporter : Proc(Nil) | Nil = nil)#

The optional usage_reporter is called each time the session is used, see AHTTP::Session#usage_index.

View source

Methods#

#create_session : AHTTP::Session#

Returns a new session for the current request.

View source