Created
October 17, 2018 12:34
-
-
Save helaan/b7277c68934f43ec2664784ce8582def 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" | |
require "kemal" | |
get "/" do | |
response = HTTP::Client.post("https://httpbin.org/post", | |
# headers: HTTP::Headers{"Content-Type" => "application/json"}, | |
# body: %[{"test":123}] | |
) | |
# "#{response.status_code}: #{response.body}" | |
end | |
Kemal.run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment