From a86b71899ec52c44ddc6c3018e8cc5e9d7ff4d62 Mon Sep 17 00:00:00 2001 From: Andrew Rabert Date: Thu, 27 Dec 2018 18:27:57 -0500 Subject: Add GPL modules --- MediaBrowser.Common/Net/IHttpClient.cs | 59 ++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 MediaBrowser.Common/Net/IHttpClient.cs (limited to 'MediaBrowser.Common/Net/IHttpClient.cs') diff --git a/MediaBrowser.Common/Net/IHttpClient.cs b/MediaBrowser.Common/Net/IHttpClient.cs new file mode 100644 index 000000000..cf5511965 --- /dev/null +++ b/MediaBrowser.Common/Net/IHttpClient.cs @@ -0,0 +1,59 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Threading; +using System.Threading.Tasks; + +namespace MediaBrowser.Common.Net +{ + /// + /// Interface IHttpClient + /// + public interface IHttpClient + { + /// + /// Gets the response. + /// + /// The options. + /// Task{HttpResponseInfo}. + Task GetResponse(HttpRequestOptions options); + + /// + /// Gets the specified options. + /// + /// The options. + /// Task{Stream}. + Task Get(HttpRequestOptions options); + + /// + /// Sends the asynchronous. + /// + /// The options. + /// The HTTP method. + /// Task{HttpResponseInfo}. + Task SendAsync(HttpRequestOptions options, string httpMethod); + + /// + /// Posts the specified options. + /// + /// The options. + /// Task{HttpResponseInfo}. + Task Post(HttpRequestOptions options); + + /// + /// Downloads the contents of a given url into a temporary location + /// + /// The options. + /// Task{System.String}. + /// progress + /// + Task GetTempFile(HttpRequestOptions options); + + /// + /// Gets the temporary file response. + /// + /// The options. + /// Task{HttpResponseInfo}. + Task GetTempFileResponse(HttpRequestOptions options); + } +} \ No newline at end of file -- cgit v1.2.3