icyleaf / halite

💎HTTP Requests Client with a chainable REST API, built-in sessions and middlewares.
MIT License
170 stars 13 forks source link

feature: support parse with block #26

Closed icyleaf closed 6 years ago

icyleaf commented 6 years ago
url = Halite.get("https://httpbin.org/get").parse do |json|
  json.as_h["url"].as_s
end

puts url # => "https://httpbin.org/get"