class Amber::Router::Constraints::All

Overview

Matches a request only when every one of its constraints does. Nested constraint blocks combine through it, so an inner block narrows the outer one instead of replacing it.

Included Modules

Defined in:

amber/router/constraints/all.cr

Constructors

Instance Method Summary

Instance methods inherited from module Amber::Router::Constraint

matches?(request : HTTP::Request) : Bool matches?

Constructor Detail

def self.new(list_of_constraints : Array(Amber::Router::Constraint)) #

[View source]

Instance Method Detail

def list_of_constraints : Array(Amber::Router::Constraint) #

[View source]
def matches?(request : HTTP::Request) : Bool #

[View source]