mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-26 18:54:48 +03:00
More warnings (removed)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#pragma warning disable CS1591
|
||||
#pragma warning disable SA1600
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -8,10 +9,21 @@ using Microsoft.Net.Http.Headers;
|
||||
namespace MediaBrowser.Common.Net
|
||||
{
|
||||
/// <summary>
|
||||
/// Class HttpRequestOptions
|
||||
/// Class HttpRequestOptions.
|
||||
/// </summary>
|
||||
public class HttpRequestOptions
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="HttpRequestOptions"/> class.
|
||||
/// </summary>
|
||||
public HttpRequestOptions()
|
||||
{
|
||||
RequestHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
|
||||
|
||||
CacheMode = CacheMode.None;
|
||||
DecompressionMethod = CompressionMethod.Deflate;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the URL.
|
||||
/// </summary>
|
||||
@@ -71,14 +83,17 @@ namespace MediaBrowser.Common.Net
|
||||
public string RequestContentType { get; set; }
|
||||
|
||||
public string RequestContent { get; set; }
|
||||
|
||||
public byte[] RequestContentBytes { get; set; }
|
||||
|
||||
public bool BufferContent { get; set; }
|
||||
|
||||
public bool LogErrorResponseBody { get; set; }
|
||||
|
||||
public bool EnableKeepAlive { get; set; }
|
||||
|
||||
public CacheMode CacheMode { get; set; }
|
||||
|
||||
public TimeSpan CacheLength { get; set; }
|
||||
|
||||
public bool EnableDefaultUserAgent { get; set; }
|
||||
@@ -89,17 +104,6 @@ namespace MediaBrowser.Common.Net
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="HttpRequestOptions"/> class.
|
||||
/// </summary>
|
||||
public HttpRequestOptions()
|
||||
{
|
||||
RequestHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
|
||||
|
||||
CacheMode = CacheMode.None;
|
||||
DecompressionMethod = CompressionMethod.Deflate;
|
||||
}
|
||||
}
|
||||
|
||||
public enum CacheMode
|
||||
|
||||
Reference in New Issue
Block a user