We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4f2619 commit a1c247cCopy full SHA for a1c247c
source/vibe/http/server.d
@@ -1307,6 +1307,12 @@ scope:
1307
else if ("Content-Type" !in headers) headers["Content-Type"] = "application/octet-stream";
1308
data.pipe(bodyWriter);
1309
}
1310
+ /// ditto
1311
+ void writeBody(scope InputStream data, int status, string content_type = null)
1312
+ {
1313
+ statusCode = status;
1314
+ writeBody(data, content_type);
1315
+ }
1316
1317
/** Writes the entire response body as a single string.
1318
@@ -1320,7 +1326,6 @@ scope:
1320
1326
1321
1327
See_Also: `HTTPStatusCode`
1322
1328
*/
1323
- /// ditto
1324
1329
void writeBody(string data, string content_type = null)
1325
1330
@safe {
1331
if (!content_type.length && "Content-Type" !in headers)
0 commit comments