class Amber::Router::Constraints::Header

Overview

Matches requests where a specific header has the expected value.

Included Modules

Defined in:

amber/router/constraints/header.cr

Constructors

Instance Method Summary

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

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

Constructor Detail

def self.new(header_name : String, expected_value : String) #

[View source]

Instance Method Detail

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

[View source]