mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-14 05:34:48 +00:00
19 lines
686 B
C#
19 lines
686 B
C#
|
|
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);
|
|||
|
|
}
|
|||
|
|
}
|