url
string or input range
content type
Response
rs = rq.exec!"POST"("http://httpbin.org/post", "привiт, свiт!", "application/octet-stream"); auto s = lineSplitter("one,\ntwo,\nthree."); rs = rq.exec!"POST"("http://httpbin.org/post", s, "application/octet-stream"); auto s = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; rs = rq.exec!"POST"("http://httpbin.org/post", s.representation.chunks(10), "application/octet-stream"); auto f = File("tests/test.txt", "rb"); rs = rq.exec!"POST"("http://httpbin.org/post", f.byChunk(3), "application/octet-stream");
POST/PATH/PUT/... data from some string(with Content-Length), or from range of strings (use Transfer-Encoding: chunked)