Permalink
Browse files

Merge pull request #19 from godfat/fix-example-in-comment

http_client.rb: fix the example in the comment, according to:
  • Loading branch information...
2 parents 4497218 + 179e6c2 commit b3d8aabefc20360476455042d77ee7ffa88f71c3 @tarcieri committed Dec 30, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/cool.io/http_client.rb
@@ -118,8 +118,8 @@ def encode_cookies(cookies)
# == Example
#
# loop = Coolio::Loop.default
- # client = Coolio::HttpClient.connect("www.google.com").attach
- # client.get('/search', query: {q: 'foobar'})
+ # client = Coolio::HttpClient.connect("www.google.com").attach(loop)
+ # client.request('GET', '/search', query: {q: 'foobar'})
# loop.run
#
class HttpClient < TCPSocket

0 comments on commit b3d8aab

Please sign in to comment.