Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit b3d8aabefc20360476455042d77ee7ffa88f71c3 2 parents 4497218 + 179e6c2
@tarcieri authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.