Pick tarpit content by request path
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e48b6bb832
commit
13468bbdf9
18 files changed
+307
-9
No files matched your search
@@ -10,6 +10,7 @@ public sealed record HoldMethodSettings(
|
||||
int MinChunkSize,
|
||||
int MaxChunkSize,
|
||||
int HeadStartSize,
|
||||
bool MatchPath,
|
||||
TimeSpan MaxHoldDuration)
|
||||
{
|
||||
public double BytesPerSecond => AverageBytesPerSecond(MinDelay, MaxDelay, MinChunkSize, MaxChunkSize);
|
||||
@@ -22,6 +23,7 @@ public sealed record HoldMethodSettings(
|
||||
[SettingKeys.DripMinChunkSize] = MinChunkSize.ToString(CultureInfo.InvariantCulture),
|
||||
[SettingKeys.DripMaxChunkSize] = MaxChunkSize.ToString(CultureInfo.InvariantCulture),
|
||||
[SettingKeys.DripHeadStartSize] = HeadStartSize.ToString(CultureInfo.InvariantCulture),
|
||||
[SettingKeys.DripMatchPath] = MatchPath ? "true" : "false",
|
||||
[SettingKeys.MaxHoldDuration] = MaxHoldDuration.ToString("c", CultureInfo.InvariantCulture)
|
||||
};
|
||||
|
||||
@@ -39,6 +41,7 @@ public sealed record HoldMethodInput(
|
||||
string? MinChunkSize,
|
||||
string? MaxChunkSize,
|
||||
string? HeadStartSize,
|
||||
bool MatchPath,
|
||||
string? MaxHoldDuration);
|
||||
|
||||
public sealed record HoldMethodParseResult(HoldMethodSettings? Settings, IReadOnlyDictionary<string, string> Errors);
|
||||
Reference in new issue
Block a user