📜  head in rails - Ruby 代码示例

📅  最后修改于: 2022-03-11 15:04:45.505000             🧑  作者: Mango

代码示例1
# Return a response that has no content (merely headers).
# The options argument is interpreted to be a hash of header names and values.
#This allows you to easily return a response that consists only of significant headers:

head :length_required # 411 Length Required
head :ok              # 200 OK