Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
philikon committed May 12, 2010
1 parent 91dfc69 commit 4061d9d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.rst
Expand Up @@ -12,6 +12,13 @@ methods:
These attributes correspond to the arguments of the ``open()``
method.

``urlParts``
Object representing individual parts of the URL passed to
``open()``, e.g. ``protocol``, ``host``, ``port``, ``path``,
``query``, ``anchor``. If present, the query string (``query``)
is parsed and its elements are available from the ``queryKey``
property.

``requestText``
This attribute will contain the request body that was passed to
the ``send()`` method.
Expand All @@ -31,6 +38,10 @@ methods:
``err(exception)``
Simulate a request error, such as ``NETWORK_ERR``.

``authenticate(user, password)``
Verify HTTP credentials passed to ``open()``, inserted into the
URL, or sent via the ``Authorization`` header (in that order).


Simple example
--------------
Expand Down

0 comments on commit 4061d9d

Please sign in to comment.