Skip to content

Instantly share code, notes, and snippets.

@helaan
Created October 17, 2018 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save helaan/b7277c68934f43ec2664784ce8582def to your computer and use it in GitHub Desktop.
Save helaan/b7277c68934f43ec2664784ce8582def to your computer and use it in GitHub Desktop.
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