mechanize.cr/main.cr

7 lines
156 B
Crystal
Raw Normal View History

2021-04-30 14:37:41 +02:00
require "./src/mechanize.cr"
agent = Mechanize.new
2021-05-01 16:22:37 +02:00
agent.request_headers = HTTP::Headers{"Foo" => "Bar"}
page = agent.get("https://example.com")
2021-04-30 14:37:41 +02:00
puts page