Sebastian Wilzbach
a36cec8686
DScanner: automatially set all unattributed unittests to @safe or @system
2017-02-22 05:42:04 +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
Sebastian Wilzbach
484f7bfbe0
enforce: whitespace after catch
2016-05-14 15:28:43 +03:00
Jack Stouffer
fb80717725
Fixed long lines in std/net/curl.d
2016-05-10 20:51:39 -04:00
Giles Bathgate
9185dddd99
Implement post overload in std.net.curl
...
This overload provides the ability to send properly escaped
www-form-urlencoded data using an associative array. The data is built into
name value pairs using an Appender!string that reserves 128 bytes per name
value pair. An example was added to the documentation and the existing one
changed as this is the more common use case.
Several corrections to coding style were suggested and corrected.
2016-05-06 09:46:25 +01:00
Matt Kline
5667d57712
toString() on HTTP.StatusLine should be const
...
It's not modifying anything...
2016-04-29 10:47:40 -07:00
Sebastian Wilzbach
3d67cd228c
style fix: space between operators
2016-04-26 22:26:20 +03:00
Steven Schveighoffer
b0acb7a394
Fix remaining import deprecation messages
2016-02-22 16:03:12 -05:00
Martin Nowak
ce2ac192c9
fix incorrect imports/fqn usages
...
- mostly of the form `import a.b : sym; a.b.sym();`, which is wrong b/c
selective imports do not add the module to the current scope
2016-02-20 14:41:44 +01:00
sigod
d278569480
std.net.curl: _basicHTTP: use Appender for collecting of response data
2016-02-19 00:52:54 +03:00
Ryan Frame
5c63480147
Add missing import
...
std.stdio.File is needed in the upload function.
2016-02-05 06:43:47 -05:00
JakobOvrum
8e38e62485
Merge pull request #3853 from 9rnsr/fix12359
...
Fix for issue 12359
2016-01-06 02:37:52 +01:00
k-hara
e864e53adc
fix property enforcement
2015-12-04 15:42:53 +09:00
k-hara
002829967b
Fix curl API load code
...
`__traits(allMembers)` enumerates all members other than struct fields, so instead use `API.tupleof` to list only function pointer fields.
2015-12-03 23:21:51 +09:00
Jonathan M Davis
d34164a2ea
Move some deprecations along.
2015-11-26 00:28:38 -08:00
Walter Bright
cf22992cbb
Merge pull request #3768 from CyberShadow/pull-20151024-051829
...
HTML fixes
2015-10-24 15:05:00 -07:00
Vladimir Panteleev
86cf380007
HTML fixes
2015-10-24 06:19:23 +00:00
Brian Schott
67c95e6de2
Merge pull request #3715 from dcarp/AliasSeq
...
Rename obsolete TypeTuple to AliasSeq
2015-10-16 20:59:56 -07:00
Vladimir Panteleev
28abd12631
Fix test race condition in phobos std.net.curl
2015-10-17 01:05:07 +00:00
Dragos Carp
d698887729
Remove obsolete TypeTuple references
...
Replace following names:
std.typetuple -> std.meta
TypeTuple -> AliasSeq
ParameterTypeTuple -> Parameters
FieldTypeTuple -> Fields
std.traits requires more work than search/replace and is left unchanged.
2015-10-13 20:37:44 +02:00
Martin Nowak
512a501e5b
properly decode content-length
...
- split headers and body
- partly parse request header for content-length
and handle 100-continue
- return headers and body separately
- fix missing content-length in patch method
2015-08-30 22:17:58 +02:00
Martin Nowak
9fe6ebceaf
fix clearIfSupported implementation
...
- to clear an option like ssl_ctx that depends
on the compile-time configuration of the used
curl library
- update CurlError enum
obsolete4 was reused as CURLE_NOT_BUILT_IN
- unknown_telnet_option was incorrectly named
(doesn't have anything to do with telnet)
2015-08-25 01:05:12 +02:00
Martin Nowak
ced236fb99
don't clean noprogress when dupping the curl handle
...
- fixes the issue that byLineAsync and byChunkAsync
currently always show the default curl progressbar
2015-08-24 15:16:59 +02:00
Martin Nowak
3e09aa89eb
turn off verbose output in test
2015-08-24 15:16:58 +02:00
Martin Nowak
463d24144d
fix type for content length parameter
...
- curl expects a 64-bit curl_off_t type
- change method from size_t to ulong
- checked conversion using to!curl_off_t
- keep testing for magic size_t.max to not
break code
2015-08-24 15:16:58 +02:00
Martin Nowak
4a496c848c
fix Issue 14938 - std.net.curl tests should use localhost or stub any networking
...
- implement test server on second thread that can be
fed with premade responses and records the requests
- rewrite tests
- fix upload which didn't work at all
2015-08-24 15:16:55 +02:00
Martin Nowak
ceb29a91c0
fix Issue 14877 - std.net.curl needs PATCH http method
...
- use infilesize for anything but post requests
though apparently curl can use both for non-POST
methods
2015-08-23 17:36:36 +02:00
Martin Nowak
2bc204c465
fix docs for HTTP only requests
2015-08-23 17:36:36 +02:00