aboutsummaryrefslogtreecommitdiffhomepage
path: root/README
diff options
context:
space:
mode:
authorGravatar Brendan Taylor <whateley@gmail.com>2010-12-03 21:20:24 -0700
committerGravatar Brendan Taylor <whateley@gmail.com>2010-12-03 21:20:24 -0700
commit55bd9f83f2aacd11a14ca46a98a85584669c6c13 (patch)
treea4b3e66900a456bbfb08d79cfe9bbe7911893ead /README
parent6774e9ade7528986743aaab0f91ddd35b2ca6608 (diff)
parentbc62ae0b8752388f08513e3554d54d9f791b0358 (diff)
Merge branch 'dev/in-webkit-downloads' into experimental
Conflicts: README
Diffstat (limited to 'README')
-rw-r--r--README12
1 files changed, 11 insertions, 1 deletions
diff --git a/README b/README
index 331b040..d05ecd4 100644
--- a/README
+++ b/README
@@ -305,6 +305,9 @@ file).
- `data`: The cookie data. Only included for "PUT" requests.
* `scheme_handler`: handler to execute for each URI navigated to - the
navigation request will be ignored if handler prints "USED\n"
+* `download_handler`: executed when a download is started. the handler script
+ should print a path that the download should be saved to, or print nothing
+ to cancel the download.
* `fifo_dir`: location to store FIFOs.
* `socket_dir`: location to store sockets.
* `http_debug`: HTTP debug mode (value 0-3).
@@ -494,9 +497,16 @@ access to the following environment variables:
These variables are also available as positional arguments `$1` through `$7`,
but this is deprecated and will be removed.
-Handler scripts (`cookie_handler`, `scheme_handler` and
+Handler scripts (`download_handler`, `cookie_handler`, `scheme_handler` and
`authentication_handler`) are called with special arguments:
+* download handler
+
+ - `$8 url`: The URL of the item to be downloaded.
+ - `$9 suggested_filename`: A filename suggested by the server or based on the URL.
+ - `$10 content_type`: The mimetype of the file to be downloaded.
+ - `$11 total_size`: The size of the file to be downloaded in bytes. This may be inaccurate.
+
* cookie handler
- `$8 GET/PUT`: Whether a cookie should be sent to the server (`GET`) or