data Bezel::Pipeline

include Bezel::Plug

A plug running other plugs in order (a pipeline as one plug), halting when one of them does.

src/plug.qz:80

Methods

def plugs -> Array[Bezel::Plug]

src/plug.qz:80

def with(*, plugs: Array[Bezel::Plug] = …) -> Bezel::Pipeline

A copy with the fields given replaced.

src/plug.qz:81

def to_h -> Hash[Symbol, Object]

The fields as a Hash, by name.

src/plug.qz:81

def call(conn: Bezel::Conn) -> Bezel::Conn

The connection changed by this plug.

from Bezel::Plug

src/plug.qz:83

def wrap(conn: Bezel::Conn, rest: (Bezel::Conn) -> Bezel::Conn) -> Bezel::Conn

Runs this plug, then rest (the plugs after it) unless it halted. Override it to act around the rest: its result is the request's.

from Bezel::Plug

src/plug.qz:85