From ec947ebc0fd5fd8befda78b3da73a0857581d886 Mon Sep 17 00:00:00 2001 From: Paul Backus Date: Fri, 17 Feb 2023 18:09:36 -0500 Subject: [PATCH] std.net.curl: add missing import to examples Fixes issue 23724 - HTTP.onReceive example does not compile --- std/net/curl.d | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/std/net/curl.d b/std/net/curl.d index 8745bbd7a..42a34b9bd 100644 --- a/std/net/curl.d +++ b/std/net/curl.d @@ -2171,7 +2171,7 @@ private mixin template Protocol() * * Example: * ---- - * import std.net.curl, std.stdio; + * import std.net.curl, std.stdio, std.conv; * auto client = HTTP("dlang.org"); * client.onReceive = (ubyte[] data) * { @@ -2817,7 +2817,7 @@ struct HTTP * * Example: * ---- - * import std.net.curl, std.stdio; + * import std.net.curl, std.stdio, std.conv; * auto client = HTTP("dlang.org"); * client.onReceive = (ubyte[] data) * { @@ -3054,7 +3054,7 @@ struct HTTP * * Example: * ---- - * import std.net.curl, std.stdio; + * import std.net.curl, std.stdio, std.conv; * auto http = HTTP("http://www.mydomain.com"); * http.onReceive = (ubyte[] data) { writeln(to!(const(char)[])(data)); return data.length; }; * http.postData = [1,2,3,4,5]; @@ -3073,7 +3073,7 @@ struct HTTP * * Example: * ---- - * import std.net.curl, std.stdio; + * import std.net.curl, std.stdio, std.conv; * auto http = HTTP("http://www.mydomain.com"); * http.onReceive = (ubyte[] data) { writeln(to!(const(char)[])(data)); return data.length; }; * http.postData = "The quick...."; @@ -3145,7 +3145,7 @@ struct HTTP * * Example: * ---- - * import std.net.curl, std.stdio; + * import std.net.curl, std.stdio, std.conv; * auto http = HTTP("dlang.org"); * http.onReceive = (ubyte[] data) { writeln(to!(const(char)[])(data)); return data.length; }; * http.onReceiveHeader = (in char[] key, in char[] value) { writeln(key, " = ", value); }; @@ -4551,7 +4551,7 @@ struct Curl * * Example: * ---- - * import std.net.curl, std.stdio; + * import std.net.curl, std.stdio, std.conv; * Curl curl; * curl.initialize(); * curl.set(CurlOption.url, "http://dlang.org");