class Radbas::EndpointMiddleware

Overview

Runs the action of the matched route.

Raises 404 if no route matched, and 405 if the path matched but the method did not. OPTIONS requests without their own route are answered with the allowed methods (RFC 9110, 9.3.7).

Included Modules

Defined in:

radbas-framework/middleware/endpoint_middleware.cr

Instance Method Summary

Instance methods inherited from module Radbas::Middleware

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

Instance Method Detail

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

[View source]