module hunt.http.codec.http.model.StringContentProvider; // import java.nio.charset.Charset; // import java.nio.charset.StandardCharsets; /** * A {@link ContentProvider} for strings. * <p> * It is possible to specify, at the constructor, an encoding used to convert * the string into bytes, by default UTF-8. */ // class StringContentProvider :BytesContentProvider { // this(string content) { // this(content, StandardCharsets.UTF_8); // } // this(string content, string encoding) { // this(content, Charset.forName(encoding)); // } // this(string content, Charset charset) { // this("text/plain;charset=" ~ charset.name(), content, charset); // } // this(string contentType, string content, Charset charset) { // super(contentType, content.getBytes(charset)); // } // }