detab and remove trailing whitespaces

This commit is contained in:
k-hara 2015-02-10 00:56:40 +09:00
parent 799fdf81ad
commit e7b3d834d7
15 changed files with 58 additions and 58 deletions

View file

@ -2693,14 +2693,14 @@ struct HTTP
* "application/octet-stream". See also: * "application/octet-stream". See also:
* $(LINK2 http://en.wikipedia.org/wiki/Internet_media_type, * $(LINK2 http://en.wikipedia.org/wiki/Internet_media_type,
* Internet media type) on Wikipedia. * Internet media type) on Wikipedia.
*----- * -----
* import std.net.curl; * import std.net.curl;
* auto http = HTTP("http://onlineform.example.com"); * auto http = HTTP("http://onlineform.example.com");
* auto data = "app=login&username=bob&password=s00perS3kret"; * auto data = "app=login&username=bob&password=s00perS3kret";
* http.setPostData(data, "application/x-www-form-urlencoded"); * http.setPostData(data, "application/x-www-form-urlencoded");
* http.onReceive = (ubyte[] data) { return data.length; }; * http.onReceive = (ubyte[] data) { return data.length; };
* http.perform(); * http.perform();
*----- * -----
*/ */
void setPostData(const(void)[] data, string contentType) void setPostData(const(void)[] data, string contentType)
{ {