1
0
Fork 0
mirror of https://github.com/jnunemaker/httparty synced 2023-03-27 23:23:07 -04:00

add doc for body_stream and 'stream_body'

This commit is contained in:
wppurking 2015-07-06 23:52:46 +08:00
parent 957320e116
commit 6c33b0b188

View file

@ -39,6 +39,8 @@ module HTTParty
# [:+timeout+:] Timeout for opening connection and reading data.
# [:+local_host:] Local address to bind to before connecting.
# [:+local_port:] Local port to bind to before connecting.
# [:+body_steam:] Allow streaming to a REST server to specify a body_stream.
# [:+stream_body:] Allow for streaming large files without loading them into memory.
#
# There are also another set of options with names corresponding to various class methods. The methods in question are those that let you set a class-wide default, and the options override the defaults on a request-by-request basis. Those options are:
# * :+base_uri+: see HTTParty::ClassMethods.base_uri.