mirror of
https://github.com/4sval/FModel.git
synced 2026-09-19 15:04:28 -05:00
I feel a little scammed
This commit is contained in:
19
FModel/Framework/FRestRequest.cs
Normal file
19
FModel/Framework/FRestRequest.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using RestSharp;
|
||||
|
||||
namespace FModel.Framework;
|
||||
|
||||
public class FRestRequest : RestRequest
|
||||
{
|
||||
private const int _timeout = 3 * 1000;
|
||||
|
||||
public FRestRequest(string url, Method method = Method.Get) : base(url, method)
|
||||
{
|
||||
Timeout = _timeout;
|
||||
}
|
||||
|
||||
public FRestRequest(Uri uri, Method method = Method.Get) : base(uri, method)
|
||||
{
|
||||
Timeout = _timeout;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user