Wrapping Apache HTTPClient
Designing a Ruby-friendly wrapper around a Java HTTP library for JRuby.
- Held
- Event
- Ruby User Group Berlin
- Location
- Berlin
JRuby · HTTP · API design
A practical look at translating Apache HTTPClient into an idiomatic Ruby API while retaining the Java library's concurrency and transport strengths.
Presentation
Notes
The wrapper was published as the http_client gem, with source code on GitHub. The core design problem was not calling Java from Ruby; it was exposing Java’s behavior through an API that felt unsurprising to Ruby callers.