Skip to content

Commit

Permalink
Merge pull request #1648 from seeschloss/http_ftp_charset_doc
Browse files Browse the repository at this point in the history
Documentation precisions regarding HTTP/FTP charset encoding
  • Loading branch information
AndrejMitrovic committed Oct 23, 2013
2 parents 6495b4e + be87817 commit 1f37a2e
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions std/net/curl.d
Expand Up @@ -342,7 +342,10 @@ unittest
* guess connection type and create a new instance for this call only.
*
* The template parameter $(D T) specifies the type to return. Possible values
* are $(D char) and $(D ubyte) to return $(D char[]) or $(D ubyte[]).
* are $(D char) and $(D ubyte) to return $(D char[]) or $(D ubyte[]). If asking
* for $(D char), content will be converted from the connection character set
* (specified in HTTP response headers or FTP connection properties, both ISO-8859-1
* by default) to UTF-8.
*
* Example:
* ----
Expand Down Expand Up @@ -403,7 +406,10 @@ unittest
* guess connection type and create a new instance for this call only.
*
* The template parameter $(D T) specifies the type to return. Possible values
* are $(D char) and $(D ubyte) to return $(D char[]) or $(D ubyte[]).
* are $(D char) and $(D ubyte) to return $(D char[]) or $(D ubyte[]). If asking
* for $(D char), content will be converted from the connection character set
* (specified in HTTP response headers or FTP connection properties, both ISO-8859-1
* by default) to UTF-8.
*
* Example:
* ----
Expand Down Expand Up @@ -463,7 +469,10 @@ unittest
* guess connection type and create a new instance for this call only.
*
* The template parameter $(D T) specifies the type to return. Possible values
* are $(D char) and $(D ubyte) to return $(D char[]) or $(D ubyte[]).
* are $(D char) and $(D ubyte) to return $(D char[]) or $(D ubyte[]). If asking
* for $(D char), content will be converted from the connection character set
* (specified in HTTP response headers or FTP connection properties, both ISO-8859-1
* by default) to UTF-8.
*
* Example:
* ----
Expand Down Expand Up @@ -3009,11 +3018,13 @@ struct FTP
p.curl.set(CurlOption.postquote, p.commands);
}

/// Connection encoding. Defaults to ISO-8859-1.
@property void encoding(string name)
{
p.encoding = name;
}

/// ditto
@property string encoding()
{
return p.encoding;
Expand Down

0 comments on commit 1f37a2e

Please sign in to comment.