Commit Graph

15 Commits (8f4b7c43a5b9aca35faeaffece67deadbe64fbb2)

Author SHA1 Message Date
Serge van Ginderachter ba55f8ed01 When saving to dest, check if we get redirected, and use the new
location header to set the dest file name if we only provided a
target dir. Only save if dest not modified.
12 years ago
mavimo c37d8988c2 Chnge description as list inside string 12 years ago
Michael DeHaan e51ee83ec7 Make URI module default to 30 seconds. 12 years ago
Grant Gavares a1d9a683a9 Add socket timeout to uri module.
The uri module can be configured to abort after a specified timeout if
it cannot connect to the configured uri. This prevents a uri action from
hanging indefinitely when the remote endpoint cannot be reached because
it is unavailable, there is a firewall in place etc. The default behavior
is left unchanged: timeout=None

This change also introduces a new type for module_parameters: int
Code was added to perform conversion from string -> int type in
module_common.py.

The new type was required in order to play nice with httplib2 which
refuses to accept (and convert) anything other than a numeric type for
the timeout value.
12 years ago
Daniel Hokka Zakrisson 1dadd70d9f Remove choices=BOOLEANS as it is no longer needed 12 years ago
Daniel Hokka Zakrisson 0150f18a3b Use argument type checking to convert to boolean 12 years ago
Michael DeHaan 9c7d70dd9e Merge pull request #2119 from jpmens/uri_json
uri: load JSON for content-type: application/json
12 years ago
Jan-Piet Mens a050c78d74 uri: load JSON for content-type: application/json
document
check prefix of content-type and merge dicts
amend doc
load JSON into 'json' subkey
12 years ago
Romeo Theriault c2fdb768e5 uri doc fixes 12 years ago
Michael DeHaan 65b826a8a8 'make pep8' is now clean 12 years ago
Michael DeHaan f4629c2bdf Hate to do this, but URI module docs were constructing messed up RST files, so removing examples for now. Will ask someone to work on them. 12 years ago
Michael DeHaan d9d033fa58 Tweak doc examples 12 years ago
Romeo Theriault 93baccce01 fixed the documentation so it build properly 12 years ago
Romeo Theriault 0e15b95787 moved module checking below module initialization 12 years ago
Romeo Theriault 8b458b2921 uri module 12 years ago