Lawrence
curl -X POST \ $url \ -H "Accept: application/json" \ -H "Content-Type: application/octet-stream" \ --data-binary "@$FILE"
setBody(file.readBytes()
ephemient
Aleksei Tirman [JB]
val client = HttpClient(Apache) val response = <http://client.post|client.post>(url) { header(HttpHeaders.Accept, ContentType.Application.Json) contentType(ContentType.Application.OctetStream) setBody(FILE.readChannel()) }
A modern programming language that makes developers happier.