- http/client
- HTTP::Client
HTTP Client example
examples/http_client/http_client.cr
require "http/client" url = "https://httpbin.org/get" response = HTTP::Client.get(url) puts response.status_code puts response.body # Setting some values in the header url = "https://httpbin.org/get" response = HTTP::Client.get(url, headers: HTTP::Headers{"Key" => "Value"}) puts response.status_code puts response.body