mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 19:37:55 +02:00
Adds `#pragma warning disable CS1591` to all files in MediaBrowser.Common containing undocumented members.
53 lines
1.9 KiB
C#
53 lines
1.9 KiB
C#
using System;
|
|
using System.IO;
|
|
using System.Threading.Tasks;
|
|
using System.Net.Http;
|
|
|
|
namespace MediaBrowser.Common.Net
|
|
{
|
|
/// <summary>
|
|
/// Interface IHttpClient
|
|
/// </summary>
|
|
public interface IHttpClient
|
|
{
|
|
/// <summary>
|
|
/// Gets the response.
|
|
/// </summary>
|
|
/// <param name="options">The options.</param>
|
|
/// <returns>Task{HttpResponseInfo}.</returns>
|
|
Task<HttpResponseInfo> GetResponse(HttpRequestOptions options);
|
|
|
|
/// <summary>
|
|
/// Gets the specified options.
|
|
/// </summary>
|
|
/// <param name="options">The options.</param>
|
|
/// <returns>Task{Stream}.</returns>
|
|
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>
|
|
/// <param name="httpMethod">The HTTP method.</param>
|
|
/// <returns>Task{HttpResponseInfo}.</returns>
|
|
[Obsolete("Use 'Task{HttpResponseInfo} SendAsync(HttpRequestOptions options, HttpMethod httpMethod);' instead")]
|
|
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>
|
|
/// <returns>Task{HttpResponseInfo}.</returns>
|
|
Task<HttpResponseInfo> Post(HttpRequestOptions options);
|
|
}
|
|
}
|