Sha256: e666dc0e9e62352fd1bdba0cd2e57de49a985bce66430f0c10fc7f9c3096f555
Contents?: true
Size: 590 Bytes
Versions: 18
Compression:
Stored size: 590 Bytes
Contents
# frozen_string_literal: true module Hanami class Router # HTTP Redirect # # @since 2.0.0 # @api private class Redirect # @since 2.0.0 # @api private attr_reader :destination # @since 2.0.0 # @api private attr_reader :code # @since 2.0.0 # @api private def initialize(destination, code, endpoint) @destination = destination @code = code @endpoint = endpoint end # @since 2.0.0 # @api private def call(env) @endpoint.call(env) end end end end
Version data entries
18 entries across 18 versions & 1 rubygems