class Crest::Curlify
- Crest::Curlify
- Reference
- Object
Overview
Class to convert Crest::Request
object to cURL command
request = Crest::Request.new(:post, "http://httpbin.org/post", form: {"title" => "New Title"})
Crest::Curlify.to_curl(request)
=> "curl -X POST http://httpbin.org/post -d 'title=New+Title' -H 'Content-Type: application/x-www-form-urlencoded'"
Defined in:
crest/curlify.crConstructors
Class Method Summary
-
.to_curl(request : Crest::Request)
Returns string with cURL command by provided
Crest::Request
object
Instance Method Summary
Constructor Detail
Class Method Detail
def self.to_curl(request : Crest::Request)
#
Returns string with cURL command by provided Crest::Request
object