mechanize.cr/main.cr

7 lines
156 B
Crystal

require "./src/mechanize.cr"
agent = Mechanize.new
agent.request_headers = HTTP::Headers{"Foo" => "Bar"}
page = agent.get("https://example.com")
puts page