class Radbas::TrailingSlashMiddleware

Overview

Redirects to the path without, or with trailing_slash, a trailing slash.

Uses 308, so clients repeat the request with the same method and body.

Included Modules

Defined in:

radbas-framework/middleware/trailing_slash_middleware.cr

Constructors

Instance Method Summary

Instance methods inherited from module Radbas::Middleware

call(context : Context, delegate : Next) : Nil call

Constructor Detail

def self.new(trailing_slash : Bool = false) #

[View source]

Instance Method Detail

def call(context : Context, delegate : Next) : Nil #

[View source]