curl-to-crystal

Instantly convert curl commands to crystal's http/client

This tool turns a curl command into crystal (1.0.0) code using http/client. Currently, it knows the following options: -d/--data, -H/--header, -I/--head, -u/--user, -k/--insecure, --url, and -X/--request.

There's probably bugs; please contribute on GitHub. Based on curl-to-go, also based on curl-to-ruby

Simple · Basic Auth · JSON · Complex JSON · Form Data