Class: Praxis::Responses::Found

Inherits:
Praxis::Response show all
Defined in:
lib/praxis/responses/http.rb

Overview

This is an example of industry practice contradicting the standard. The HTTP/1.0 specification (RFC 1945) required the client to perform a temporary redirect (the original describing phrase was “Moved Temporarily”), but popular browsers implemented 302 with the functionality of a 303 See Other. Therefore, HTTP/1.1 added self.status = codes 303 and 307 to distinguish between the two behaviours. However, some Web applications and frameworks use the 302 self.status = code as if it were the 303.

Instance Attribute Summary

Attributes inherited from Praxis::Response

#body, #headers, #name, #parts, #request, #status

Method Summary

Methods inherited from Praxis::Response

#add_part, #content_type, #content_type=, #encode!, #finish, #format!, #handle, inherited, #initialize, #response_name, #validate

Constructor Details

This class inherits a constructor from Praxis::Response