-
-
Save paulcsmith/21d34f079525c669b1f4ada4746579ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "http" | |
private def client | |
HTTP::Client.new(host: "www.googleapis.com", tls: context) | |
end | |
private def context | |
# I did this to customize the context, but haven't been | |
# able to figure out how to make this work | |
context = OpenSSL::SSL::Context::Client.new | |
context | |
end | |
client.get("/") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment