Class: Calligraphy::Rails::WebDavRequestsController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Calligraphy::Rails::WebDavRequestsController
- Includes:
- WebDavMethods, WebDavPreconditions
- Defined in:
- lib/calligraphy/rails/web_dav_requests_controller.rb
Overview
Controller for all WebDAV requests.
Instance Method Summary collapse
-
#invoke_method ⇒ Object
Entry-point for all WebDAV requests.
Instance Method Details
#invoke_method ⇒ Object
Entry-point for all WebDAV requests. Handles checking and validating preconditions, directing of requests to the proper WebDAV action method, and composing responses to send back to the client.
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/calligraphy/rails/web_dav_requests_controller.rb', line 17 def invoke_method unless check_preconditions return send_response(status: :precondition_failed) end method = request.request_method.downcase status, body = make_request method send_response status: status, body: body end |