Class Waves::Dispatchers::Redirect
In: lib/dispatchers/base.rb
Parent: SignalException

Redirect exceptions are rescued by the Waves dispatcher and used to set the response status and location.

Methods

message   new  

Attributes

path  [R] 
status  [R] 

Public Class methods

[Source]

    # File lib/dispatchers/base.rb, line 13
13:       def initialize( path, status = '302' )
14:         @path = path
15:         @status = status
16:       end

Public Instance methods

[Source]

    # File lib/dispatchers/base.rb, line 17
17:       def message
18:         "location: #{@path} status: #{@status}"
19:       end

[Validate]