- #get scheme
- request.env['rack.url_scheme']
- #get domain
- request.env['SERVER_NAME']
- #get port
- request.env['SERVER_PORT']
- #get request method
- request.request_method
- #get ip
- request.remote_id
- #get client language
- request.env['HTTP_ACCEPT_LANGUAGE']
- #get root path
- request.env['RAILS_RELATIVE_URL_ROOT']
rails request 对象
最新推荐文章于 2021-02-08 13:57:52 发布