class

Global

Inherits Reference < Object

Extend Global class with session storage. This allows the session to be shared between with_session and the HTTP helper methods (get, post, etc.)

Class methods

response

Returns the response from the last request

Source
response=(response : Nil | HTTP::Client::Response)

Sets the response from the last request

Source
session=(session : Kemal::Session | Nil)

The current test session, if any. When set, all HTTP requests will include this session's cookie.

Source
session?

The current test session, if any. When set, all HTTP requests will include this session's cookie.

Source