mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-14 20:33:41 +00:00
feat(protocol): add FTP, FTPS and FTPES downloads (#1569)
This commit is contained in:
1 parent
e0951de270
commit
c0b70d319d
54 files changed
+3850
-38
No files matched your search
@@ -42,6 +42,20 @@ class ReqExtraBt {
|
||||
Map<String, dynamic> toJson() => _$ReqExtraBtToJson(this);
|
||||
}
|
||||
|
||||
/// The request extra of an FTP task. It mirrors `pkg/protocol/ftp.ReqExtra`;
|
||||
/// [tls] only applies to `ftp://` URLs, because `ftps://` always uses
|
||||
/// implicit TLS and `ftpes://` always uses explicit TLS.
|
||||
@JsonSerializable()
|
||||
class ReqExtraFtp {
|
||||
String tls;
|
||||
|
||||
ReqExtraFtp({this.tls = 'none'});
|
||||
|
||||
factory ReqExtraFtp.fromJson(Map<String, dynamic> json) => _$ReqExtraFtpFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$ReqExtraFtpToJson(this);
|
||||
}
|
||||
|
||||
enum RequestProxyMode { follow, none, custom }
|
||||
|
||||
@JsonSerializable()
|
||||
|
||||
Reference in new issue
Block a user