Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Celluloid::IO docs #268

Merged
merged 1 commit into from
Nov 25, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,30 +276,6 @@ HTTP.persistent('http://en.wikipedia.org') do |http|
end
```

### Celluloid::IO Support

http.rb makes it simple to make multiple concurrent HTTP requests from a
Celluloid::IO actor. Here's a parallel HTTP fetcher combining http.rb with
Celluloid::IO:

```ruby
require "celluloid/io"
require "http"

class HttpFetcher
include Celluloid::IO

def fetch(url)
HTTP.get(url, socket_class: Celluloid::IO::TCPSocket)
end
end
```

There's a little more to it, but that's the core idea!

* [Full parallel HTTP fetcher example](https://github.com/httprb/http/wiki/Parallel-requests-with-Celluloid%3A%3AIO)
* See also: [Celluloid::IO](https://github.com/celluloid/celluloid-io)

### Timeouts

By default, HTTP does not timeout on a request. You can enable per operation
Expand Down