提交 c638d478 编写于 作者: K Kasper Timm Hansen

[ci skip] Update the `as` docs.

Mention the Accept header and how that figures into the request format.
上级 143fc87c
......@@ -577,7 +577,8 @@ def method_missing(sym, *args, &block)
# end
# end
#
# The +as+ option sets the format to JSON, sets the content type to
# The +as+ option passes an "application/json" Accept header (thereby setting
# the request format to JSON unless overridden), sets the content type to
# "application/json" and encodes the parameters as JSON.
#
# Calling +parsed_body+ on the response parses the response body based on the
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册