postContent

Call post and return response content.

postContent
(
A...
)
()

Examples

import std.json;
globalLogLevel(LogLevel.info);
auto r = postContent("http://httpbin.org/post", `{"a":"b", "c":1}`, "application/json");
assert(parseJSON(r.data).object["json"].object["c"].integer == 1);

Meta