-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
282 additions
and
308 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* Copyright © 2019-2020 spypunk <[email protected]> | ||
* | ||
* This work is free. You can redistribute it and/or modify it under the | ||
* terms of the Do What The Fuck You Want To Public License, Version 2, | ||
* as published by Sam Hocevar. See the COPYING file for more details. | ||
*/ | ||
|
||
package spypunk.sponge | ||
|
||
const val DEFAULT_MAXIMUM_DEPTH = 1 | ||
const val DEFAULT_MAXIMUM_URIS = 1_000_000 | ||
const val DEFAULT_INCLUDE_SUBDOMAINS = false | ||
const val DEFAULT_CONCURRENT_REQUESTS = 1 | ||
const val DEFAULT_CONCURRENT_DOWNLOADS = 1 | ||
|
||
data class SpongeConfig( | ||
val spongeUri: SpongeUri, | ||
val mimeTypes: Set<String>, | ||
val fileExtensions: Set<String>, | ||
val maximumDepth: Int = DEFAULT_MAXIMUM_DEPTH, | ||
val maximumUris: Int = DEFAULT_MAXIMUM_URIS, | ||
val includeSubdomains: Boolean = DEFAULT_INCLUDE_SUBDOMAINS, | ||
val concurrentRequests: Int = DEFAULT_CONCURRENT_REQUESTS, | ||
val concurrentDownloads: Int = DEFAULT_CONCURRENT_DOWNLOADS | ||
) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.