Closed cyangle closed 2 years ago
This is to support upload multiple IO::Memory strings without creating temp files.
Example:
metadata = { "owner" => "crystal", "id" => "test" } pp Crest::Request.post( "http://httpbin.org/post", { "meta.json" => IO::Memory.new(metadata.to_json), "file" => File.open("./spec/support/fff.png") } ).body
This is just a POC draft. @mamantoha
LGTM
@mamantoha This PR is ready for review.
This is to support upload multiple IO::Memory strings without creating temp files.
Example:
This is just a POC draft. @mamantoha