Commit graph

191 commits

Author SHA1 Message Date
SHOO
c97bf685ec remove trailing whitespace 2018-01-28 04:39:47 +09:00
SHOO
80f4709a98 Fix Issue 18316 - std.net.curl.SMTP.mailTo fails to compile 2018-01-28 03:57:59 +09:00
Sebastian Wilzbach
b9eaa3b1bd Fix Issue 18278 - writef documentation 404 error 2018-01-26 10:17:47 +01:00
Martin Nowak
e31e7293ff remove stale comment 2018-01-14 22:25:32 +01:00
Sebastian Wilzbach
7de3787876 Use static foreach in Phobos 2018-01-03 17:30:11 +01:00
The Dlang Bot
da00e8f390
Merge pull request #5927 from wilzbach/udflags
Add a StdUnittest version
merged-on-behalf-of: David Nadlinger <code@klickverbot.at>
2017-12-21 13:10:52 +01:00
Sebastian Wilzbach
2678754347 Add StdUnittest to std.net.curl + stdx.allocator 2017-12-21 09:36:10 +01:00
Sebastian Wilzbach
91eaa508c4 Address review 2017-12-15 20:02:58 +01:00
Sebastian Wilzbach
ca0777a1a7 Make imports in std.net.curl local & lazy 2017-12-15 11:41:31 +01:00
Ky-Anh Huynh
1c1c8a6455 std.net.curl: Fix getTiming example 2017-10-07 13:20:22 +07:00
The Dlang Bot
4cfe0f38bc Merge pull request #5551 from MartinNowak/http_status_exception
throw specific HTTPStatusException on http request errors
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-07-08 21:06:22 +02:00
Martin Nowak
97e9db7f02 throw specific HTTPStatusException on http request errors
- To make them distinguishable from (e.g. connection) errors and allow
  appropriate handling in client code.
2017-07-08 14:01:49 +02:00
RazvanN7
e40a35675a Fix Issue 17540 - std.net.curl: HTTP no possibillity to set CURLOPT_NOPROXY 2017-07-06 19:28:15 +02:00
Walter Bright
e37ce5aa62 Merge pull request #5468 from andralex/nononosharedstaticzisincurl
Eliminate shared this from std/net/curl.d
2017-06-30 13:06:40 -07:00
The Dlang Bot
fc5e0d37ee Merge pull request #5522 from JackStouffer/datetime-imports
Switched package-wide datetime imports to new sub-packages
merged-on-behalf-of: Vladimir Panteleev <github@thecybershadow.net>
2017-06-30 20:23:02 +02:00
Jack Stouffer
20d40a954c Switched package-wide datetime imports to new sub-packages 2017-06-30 13:51:53 -04:00
Sebastian Wilzbach
818deb3615 Fix DDoc macros 2017-06-30 01:39:24 +02:00
Sebastian Wilzbach
2ec7e9199b Fix Ddoc comments 2017-06-21 05:10:24 +02:00
Vladimir Panteleev
d0b9555a06
Revert "Sort selective imports"
This reverts commit 998ad51fd7.
2017-06-13 17:51:52 +00:00
Sebastian Wilzbach
998ad51fd7 Sort selective imports 2017-06-12 08:12:09 +02:00
Sebastian Wilzbach
61717ecc7d Sort imports 2017-06-12 07:54:38 +02:00
Andrei Alexandrescu
f1455701ea Eliminate shared this from std/net/curl.d 2017-06-11 14:05:41 -04:00
Jonathan M Davis
07fddbb388 Move deprecations along. 2017-05-07 11:27:48 +02:00
Jack Stouffer
b2c6d5f45b Fix dscanner sugesstions in std/net/curl.d 2017-03-13 15:01:49 -04:00
Andrei Alexandrescu
30724e67d9 Merge pull request #5166 from wilzbach/dscanner-unittest-safe-or-system
Dscanner: let unittest be @safe or @system
2017-02-22 14:44:08 -05:00
Sebastian Wilzbach
a36cec8686 DScanner: automatially set all unattributed unittests to @safe or @system 2017-02-22 05:42:04 +01:00
Sebastian Wilzbach
425ab667a3 Automatically set the range style from a..b -> a .. b
Commands:

sed -E "s/([[:alnum:]])[.][.]([[:alnum:]])/\1 .. \2/g" -i **/*.d
sed -E "s/([[:alnum:]])[.][.] ([[:alnum:]])/\1 .. \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) [.][.]([[:alnum:]])/\1 .. \2/g" -i **/*.d
2017-02-22 05:37:31 +01:00
Sebastian Wilzbach
805c720595 Unify Phobos by ensuring there's always a space after cast(...)
Command:

sed -E 's/([^"])cast\(([^)]*?)\)([[:alnum:]])/\1cast(\2) \3/g' -i **/*.d
2017-02-21 16:40:20 +01:00
Sebastian Wilzbach
87dec58a41 DStyle: Constraints on declarations should have the same indentation level 2017-02-17 07:36:23 +01:00
Jack Stouffer
a5e0c92274 Removed several global imports from std.net.curl 2017-02-12 01:19:14 -05:00
John Colvin
644dd344cf unecessary imports 2017-01-31 10:35:31 +00:00
RazvanN7
1d6076760b Fix Issue 16736 - fixed broken links 2017-01-17 17:06:09 +02:00
e-y-e
befa0bfb6e Updated Flag uses to Yes/No structs 2016-09-29 14:45:20 +01:00
Mathias Lang
e43a3a12a3 Remove last use of implicit string concatenation
This feature will hopefully be deprecated soon.
2016-09-26 14:35:41 +02:00
Walter Bright
85de7885b8 use @system to return pointers to stack 2016-08-24 17:09:20 -07:00
anonymous
f87d112471 fix selective import style 2016-08-09 02:06:01 +02:00
anonymous
84f7662c5d ignore case when looking for "charset"
RF2616 says: "The type, subtype, and parameter attribute names are
case-insensitive."

https://tools.ietf.org/html/rfc2616#section-3.7
2016-08-09 01:56:32 +02:00
anonymous
9d65668007 DRY: the HTTP struct already detects the charset 2016-08-09 01:41:57 +02:00
Martin Trenkmann
31d8b4785d Fixed wrong variable name in embedded doc 2016-08-02 18:43:14 +02:00
Jack Stouffer
96b0a5ac36 Added const and immutable to several variables in std.net.curl 2016-07-20 13:54:33 -04:00
Walter Bright
7e7bee5acb Merge pull request #4615 from JackStouffer/unused-variables
[trivial] Removed unused variables from std.net.curl
2016-07-20 05:45:28 -07:00
Jack Stouffer
447b319d1c Removed unused variables from std.net.curl 2016-07-18 15:37:05 -04:00
alphaKAI
8d813092a1 Fix typos in std.net.curl
Documentation of async function : byLineAsync & byChunkAsync has a little typos
2016-07-18 22:54:55 +09:00
Jack Stouffer
4b2220d9b5 Fixed local imports in std.net.curl 2016-06-30 18:11:39 -04:00
Sebastian Wilzbach
ec47ac4224 Remove the WEB macro in favor of HTTP
replacement: sed 's/\$(WEB/\$(HTTP/g' -i **/*.d
2016-06-16 00:14:51 +02:00
anonymous
da1c9a8283 Ddoc: ECXREF -> REF (sed)
Done by:

arg='\s*([^(),]*)'
from='\$\(ECXREF\s'$arg','$arg'\)'
to='$(REF \2, etc,c,\1)'
(find . -type f -name "*.d" -print0; \
    find . -type f -name "*.dd" -print0) | \
xargs -0 sed -i -r "s/$from/$to/g"
2016-06-08 00:22:03 +02:00
Dmitry Olshansky
8d424b18cf Merge pull request #4314 from wilzbach/public_document_curl
std.curl: document public methods
2016-06-03 21:37:39 +04:00
Sebastian Wilzbach
1d34a121e9 apply all-man braces in Phobos
// find common cases
sed -E "s/^(\s*)((if|static if|for|foreach|foreach_reverse|while|unittest|switch|else|version).*)\s*\{$/\1\2\n\1{/" -i **/*.d
// catch else-if
sed -E "s/^(\s*)} (else static if| if|else if|else)(.*)\s*\{$/\1}\n\1\2\3\n\1{/" -i **/*.d
// remove created trailing whitespace
sed -i 's/[ \t]*$//' **/*.d
2016-05-31 13:07:53 +02:00
anonymous
764caefa36 XREF -> REF (sed)
Done by:

(find . -type f -name "*.d" -print0; \
    find . -type f -name "*.dd" -print0) | \
xargs -0 sed -i -r \
    's/\$\(XREF\s+([^(),]*),\s*([^(),]*)\)/$(REF \2, std,\1)/g'
2016-05-27 21:32:46 +02:00
Sebastian Wilzbach
b89adfc3b0 std.curl: document public methods 2016-05-27 05:13:16 +02:00