module Amber::Router::Constraint

Overview

Abstract constraint that can inspect the full HTTP request. Implement this module to create custom request-level constraints for route matching (e.g., subdomain, host, header matching).

Direct including types

Defined in:

amber/router/constraint.cr

Instance Method Summary

Instance Method Detail

abstract def matches?(request : HTTP::Request) : Bool #

[View source]