class Onyx::HTTP::Middleware::Rescuer::Silent(T)

Overview

A rescuer which silently passes a error to the #next_handler.

Included Modules

Direct Known Subclasses

Defined in:

onyx-http/middleware/rescuer/silent.cr

Constructors

Instance Method Summary

Instance methods inherited from module Onyx::HTTP::Middleware::Rescuer(T)

before_next_handler(context : HTTP::Server::Context, error : T) before_next_handler, handle(context : HTTP::Server::Context, error : T) handle, next_handler : ::HTTP::Handler next_handler, next_handler=(next_handler : ::HTTP::Handler) next_handler=

Constructor methods inherited from module Onyx::HTTP::Middleware::Rescuer(T)

new(next_handler : ::HTTP::Handler) new

Constructor Detail

def self.new(next_handler : ::HTTP::Handler) #

Initialize with a next_handler to call when a error is rescued.


[View source]

Instance Method Detail

def handle(context, error) #

Do nothing.


[View source]