Skip to content

Commit 3c39eaa

Browse files
committed
Update documentation for HttpOpener. (#456)
1 parent 80235d6 commit 3c39eaa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

metafacture-io/src/main/java/org/metafacture/io/HttpOpener.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@
4040
* @author Christoph Böhme
4141
* @author Jan Schnasse
4242
*/
43-
@Description("Opens a http resource. Supports the setting of Accept and Accept-Charset as http header fields.")
43+
@Description("Opens an HTTP resource. Supports the setting of `Accept` and `Accept-Charset` as HTTP header fields, as well as generic headers (separated by `\\n`).")
4444
@In(String.class)
45-
@Out(java.io.Reader.class)
45+
@Out(Reader.class)
4646
@FluxCommand("open-http")
4747
public final class HttpOpener extends DefaultObjectPipe<String, ObjectReceiver<Reader>> {
4848

@@ -86,7 +86,8 @@ public void setEncoding(final String encoding) {
8686
}
8787

8888
/**
89-
* Sets a request property.
89+
* Sets a request property, or multiple request properties separated by
90+
* {@code \n}.
9091
*
9192
* @param header request property line
9293
*/

0 commit comments

Comments
 (0)