Follow redirects in ClientGet
[jFCPlib.git] / src / main / java / net / pterodactylus / fcp / quelaton / ClientGetCommand.java
index 01f88e9..385506f 100644 (file)
@@ -2,6 +2,7 @@ package net.pterodactylus.fcp.quelaton;
 
 import java.io.InputStream;
 import java.util.Optional;
+import java.util.function.Consumer;
 
 import net.pterodactylus.fcp.Priority;
 
@@ -12,6 +13,7 @@ import net.pterodactylus.fcp.Priority;
  */
 public interface ClientGetCommand {
 
+       ClientGetCommand onRedirect(Consumer<String> onRedirect);
        ClientGetCommand ignoreDataStore();
        ClientGetCommand dataStoreOnly();
        ClientGetCommand maxSize(long maxSize);