123456789101112131415161718 |
- 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<string> TextObservable { get; }
- IObservable<byte[]> 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<byte[]> bytes, CancellationToken cancellationToken);
- }
- }
|