diff options
| author | Anthony Lavado <anthonylavado@users.noreply.github.com> | 2019-06-14 09:19:56 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-14 09:19:56 -0400 |
| commit | d4a42a1680a48cba0d87fac0808180e68072baab (patch) | |
| tree | 0969864c31878d1146e48167dc7a6bba70187266 /MediaBrowser.Common/Net/IHttpClient.cs | |
| parent | b25c08e79ae56fa9a69cbc4a0f4901c73c65e78a (diff) | |
| parent | af099a9b53616fdc38392c86236d00413cdc14c5 (diff) | |
Merge pull request #1080 from Bond-009/httpclient
Remove usage of deprecated 'WebRequest'
Diffstat (limited to 'MediaBrowser.Common/Net/IHttpClient.cs')
| -rw-r--r-- | MediaBrowser.Common/Net/IHttpClient.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/MediaBrowser.Common/Net/IHttpClient.cs b/MediaBrowser.Common/Net/IHttpClient.cs index 5aaf7e0be..db69c6f2c 100644 --- a/MediaBrowser.Common/Net/IHttpClient.cs +++ b/MediaBrowser.Common/Net/IHttpClient.cs @@ -1,5 +1,6 @@ using System.IO; using System.Threading.Tasks; +using System.Net.Http; namespace MediaBrowser.Common.Net { @@ -23,6 +24,8 @@ namespace MediaBrowser.Common.Net Task<Stream> Get(HttpRequestOptions options); /// <summary> + /// Warning: Deprecated function, + /// use 'Task<HttpResponseInfo> SendAsync(HttpRequestOptions options, HttpMethod httpMethod);' instead /// Sends the asynchronous. /// </summary> /// <param name="options">The options.</param> @@ -31,6 +34,14 @@ namespace MediaBrowser.Common.Net Task<HttpResponseInfo> SendAsync(HttpRequestOptions options, string httpMethod); /// <summary> + /// Sends the asynchronous. + /// </summary> + /// <param name="options">The options.</param> + /// <param name="httpMethod">The HTTP method.</param> + /// <returns>Task{HttpResponseInfo}.</returns> + Task<HttpResponseInfo> SendAsync(HttpRequestOptions options, HttpMethod httpMethod); + + /// <summary> /// Posts the specified options. /// </summary> /// <param name="options">The options.</param> |
