~ubuntu-branches/ubuntu/lucid/lazr.restfulclient/lucid-proposed

« back to all changes in this revision

Viewing changes to src/lazr/restfulclient/docs/entries.txt

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2014-12-11 16:30:02 UTC
  • Revision ID: package-import@ubuntu.com-20141211163002-9esry51vksl1z3hd
Tags: 0.9.11-1ubuntu1.4
Always uppercase HTTP methods to match httplib2 expectations
(LP: #1401544).

Show diffs side-by-side

added added

removed removed

Lines of Context:
542
542
request.
543
543
 
544
544
    >>> recipes = cookbook.find_recipes(search="foo")
545
 
    send: 'get /1.0/cookbooks/...ws.op=find_recipes...'
 
545
    send: 'GET /1.0/cookbooks/...ws.op=find_recipes...'
546
546
    ...
547
547
 
548
548
Even dereferencing an entry from another entry and then invoking a
549
549
named operation causes only one HTTP request.
550
550
 
551
551
    >>> recipes = recipe1.cookbook.find_recipes(search="bar")
552
 
    send: 'get /1.0/cookbooks/...ws.op=find_recipes...'
 
552
    send: 'GET /1.0/cookbooks/...ws.op=find_recipes...'
553
553
    ...
554
554
 
555
555
In all cases we are able to delay HTTP requests until the moment we