class Amber::Pipe::Pipeline

Overview

This class picks the correct pipeline based on the request and executes it.

Defined in:

amber/pipes/pipeline.cr

Constructors

Instance Method Summary

Instance methods inherited from class Amber::Pipe::Base

call(context : HTTP::Server::Context) call

Constructor Detail

def self.new(valve : Symbol = :web) #

[View source]

Instance Method Detail

def build(valve : Symbol, &) #

Connects pipes to a pipeline to process requests


[View source]
def build_pipeline(pipes, last_pipe : HTTP::Handler | HTTP::Server::Context -> ) #

[View source]
def call(context : HTTP::Server::Context) #
Description copied from class Amber::Pipe::Base

Execution of this handler.


[View source]
def pipeline : Hash(Symbol, Array(HTTP::Handler)) #

[View source]
def plug(pipe : HTTP::Handler) #

[View source]
def prepare_pipelines #

[View source]
def valve : Symbol #

[View source]