mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-06-09 00:46:19 +00:00
25 lines
602 B
C#
25 lines
602 B
C#
using System;
|
|
using System.IO;
|
|
using System.Net;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace CryptoExchange.Net.Interfaces
|
|
{
|
|
public interface IRequest
|
|
{
|
|
Uri Uri { get; }
|
|
WebHeaderCollection Headers { get; set; }
|
|
string Method { get; set; }
|
|
TimeSpan Timeout { get; set; }
|
|
void SetProxy(string host, int port);
|
|
|
|
string ContentType { get; set; }
|
|
string Content { get; set; }
|
|
string Accept { get; set; }
|
|
long ContentLength { get; set; }
|
|
|
|
Task<Stream> GetRequestStream();
|
|
Task<IResponse> GetResponse();
|
|
}
|
|
}
|