Files
MRCC/launcher/PCL-CE/Plain Craft Launcher 2/Modules/Network/Models/RequestParam.cs
T

20 lines
437 B
C#
Raw Normal View History

using System.Text;
namespace PCL.Network;
public struct RequestParam
{
public Encoding? Encoding { get; set; }
public string? Accept { get; set; }
public string? FallbackUrl { get; set; }
public bool UseBrowserUserAgent { get; set; }
public int Timeout { get; set; }
public int Retries { get; set; }
public static RequestParam WithRetry => new()
{
Timeout = 30000,
Retries = 3
};
}