Exception: Rackful::HTTP202Accepted
- Inherits:
-
HTTPStatus
- Object
- RuntimeError
- HTTPStatus
- Rackful::HTTP202Accepted
- Defined in:
- lib/rackful/httpstatus.rb
Instance Attribute Summary (collapse)
-
- (void) headers
inherited
from HTTPStatus
readonly
Returns the value of attribute headers.
-
- (void) status
inherited
from HTTPStatus
readonly
Returns the value of attribute status.
-
- (void) to_rackful
inherited
from HTTPStatus
readonly
Returns the value of attribute to_rackful.
Instance Method Summary (collapse)
-
- (HTTP202Accepted) initialize(location = nil)
constructor
A new instance of HTTP202Accepted.
Constructor Details
- (HTTP202Accepted) initialize(location = nil)
Returns a new instance of HTTP202Accepted
139 140 141 142 143 144 145 146 147 148 149 |
# File 'lib/rackful/httpstatus.rb', line 139 def initialize location = nil if location location = URI(location) super( 202, "The request body you sent has been accepted for processing.", :Job status location:" => location, 'Location' => location ) else super 202 end end |
Instance Attribute Details
- (void) headers (readonly) Originally defined in class HTTPStatus
Returns the value of attribute headers
- (void) status (readonly) Originally defined in class HTTPStatus
Returns the value of attribute status
- (void) to_rackful (readonly) Originally defined in class HTTPStatus
Returns the value of attribute to_rackful