using System; using System.Collections.Generic; using System.Net.Http; using System.Threading; using System.Threading.Tasks; namespace SocketIOClient.Transport { public interface IHttpPollingHandler : IDisposable { IObservable TextObservable { get; } IObservable BytesObservable { get; } Task GetAsync(string uri, CancellationToken cancellationToken); Task SendAsync(HttpRequestMessage req, CancellationToken cancellationToken); Task PostAsync(string uri, string content, CancellationToken cancellationToken); Task PostAsync(string uri, IEnumerable bytes, CancellationToken cancellationToken); } }