Skip to content
Browse files

http_client.rb: fix the example in the comment, according to:

examples/google.rb
  • Loading branch information...
1 parent 4497218 commit 179e6c2ac6643446e1fccf352e4080771be56779 @godfat godfat committed Dec 30, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/cool.io/http_client.rb
View
4 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 179e6c2

Please sign in to comment.
Something went wrong with that request. Please try again.