aboutsummaryrefslogtreecommitdiffhomepage
path: root/README
diff options
context:
space:
mode:
authorGravatar Dan Hackney <dan@haxney.org>2009-12-30 10:34:30 -0500
committerGravatar Dan Hackney <dan@haxney.org>2009-12-30 10:34:30 -0500
commit4e1b8b55242b120a1c7cfe49ee92f4390c99ff3b (patch)
tree20b439888b5a3d2279c3fde2b7ab6d1a227e8fa6 /README
parentfd99b43c5767b98910c8b72aa7a2b743af3d110b (diff)
Document download and cookie handler.
Explain the arguments that are passed to the handler scripts. Signed-off-by: Dan Hackney <dan@haxney.org>
Diffstat (limited to 'README')
-rw-r--r--README11
1 files changed, 9 insertions, 2 deletions
diff --git a/README b/README
index b36d2d8..a5d6954 100644
--- a/README
+++ b/README
@@ -200,8 +200,15 @@ Besides the builtin variables you can also define your own ones and use them in
- `always_insert_mode`: set this to true if you don't like modal (vim-like) interfaces TODO explain plugin variable
- `reset_command_mode`: automatically revert to command mode on pageload (unless always_insert_mode is set) TODO explain plugin variable
- `modkey`: modkey which can be pressed to activate keybind from inside insert mode
- - `download_handler`
- - `cookie_handler`
+ - `download_handler`: Handler called when page requests a download. In addition to the standard handler arguments, appends the following extra arguments:
+ - `url`: The URL of the item to be downloaded.
+ - `proxy`: (optional) The URL of an HTTP proxy.
+ - `cookie_handler`: Handler called when the page requests a cookie to be retrieved or set. Appends the following arguments to the standard handler arguments.
+ - `op`: Either "GET" if the browser requests a cookie to be sent to the server or "PUT" if the server requests the browser save a cookie.
+ - `scheme`: The request address scheme ("http" or "https").
+ - `host`: The host requesting the cookie.
+ - `path`: The request address path.
+ - `data`: The cookie data. Only included for "PUT" requests.
- `new_window`: handler to execute to invoke new uzbl window (TODO better name)
- `scheme_handler`: handler to execute for each URI navigated to - the navigation request will be ignored if handler prints "USED\n"
- `fifo_dir`: location to store fifo's