Ruby on Rails
开发环境: Ruby on Rails
Ruby on Rails: 一般
Rails通过提供一套预建的组件和库,为开发者提供了一种快速有效的方法来创建Web应用程序。该框架基于模型-视图-控制器(MVC)架构模式,它在数据模型、应用逻辑和用户界面之间提供了一个清晰的分离。HTTP常量在Ruby on Rails中很重要,因为它们为开发者提供了一种简单的方法来定义和使用HTTP状态代码和头名称。这些常量是HTTP协议的一部分,允许Web应用程序在服务器和客户端之间交换信息。
Ruby on Rails: HTTP 常数
:continue
:switching_protocols
:processing
:early_hints
:ok
:created
:accepted
:non_authoritative_information
:no_content
:reset_content
:partial_content
:multi_status
:already_reported
:im_used
:multiple_choices
:moved_permanently
:found
:see_other
:not_modified
:use_proxy
:reserved
:temporary_redirect
:permanent_redirect
:bad_request
:unauthorized
:payment_reqired
:forbidden
:not_found
:method_not_allowed
:not_acceptable
:proxy_authentication_required
:request_timeout
:conflict
:gone
:length_required
:precondition_failed
:request_entity_too_large
:request_uri_too_long
:unsupported_media_type
:requested_range_not_satisfiable
:expectation_failed
:misdirected_request
:unprocessable_entity
:locked
:failed_dependency
:too_early
:upgrade_required
:precondition_required
:too_many_requests
:request_header_fields_too_large
:unavailable_for_legal_reasons
:internal_server_error
:not_implemented
:bad_gateway
:service_unavailable
:gateway_timeout
:variant_also_negotiates
:insufficient_storage
:loop_detected
:not_extended
:network_authentication_required