data Bezel::App

What every request of an application shares: its configuration and, with a DATABASE_URL, the database's pool. Bezel.start makes it; a test makes one with App.new(config).

skip_csrf is Bezel::Testing's: requests through Plug::CSRF need no token. It comes from the program, never from a request, and is refused in prod (Bezel::ConfigError at the first request it would skip).

src/conn.qz:8

Class methods

def self.test(name: String = …) -> Bezel::App

An application name in test, without a database: what a test of an endpoint uses when it gives none.

src/conn.qz:11

Methods

def config -> Bezel::Config

src/conn.qz:8

def pool -> PG::Pool?

src/conn.qz:8

def skip_csrf -> Bool

src/conn.qz:8

def to_h -> Hash[Symbol, Object]

The fields as a Hash, by name.

src/conn.qz:11

def with(*, config: Bezel::Config = …, pool: PG::Pool? = …, skip_csrf: Bool = …) -> Bezel::App

A copy with the fields given replaced.

src/conn.qz:11