Class HttpRequestOptions
Inheritance
HttpRequestOptions
Assembly: MediaBrowser.Common.dll
public sealed class HttpRequestOptions
Properties
Gets or sets the accept header.
Declaration
public string AcceptHeader { get; set; }
Property Value
Type |
Description |
String |
The accept header.
|
Declaration
public bool AppendCharsetToMimeType { get; set; }
Property Value
BufferContent
Declaration
public bool BufferContent { get; set; }
Property Value
Declaration
public TimeSpan CacheLength { get; set; }
Property Value
Declaration
public CacheMode CacheMode { get; set; }
Property Value
Gets or sets the cancellation token.
Declaration
public CancellationToken CancellationToken { get; set; }
Property Value
ConnectionContext
Declaration
public IDisposable ConnectionContext { get; set; }
Property Value
Declaration
public CompressionMethod? DecompressionMethod { get; set; }
Property Value
Declaration
public string DownloadFilePath { get; set; }
Property Value
Declaration
public bool EnableAutomaticTimeouts { get; set; }
Property Value
Declaration
public bool EnableDefaultUserAgent { get; set; }
Property Value
Gets or sets a value indicating whether [enable HTTP compression].
Declaration
public bool EnableHttpCompression { get; set; }
Property Value
Type |
Description |
Boolean |
true if [enable HTTP compression]; otherwise, false .
|
Declaration
public bool EnableKeepAlive { get; set; }
Property Value
Declaration
public int? FileBufferSize { get; set; }
Property Value
Declaration
public FileOpenOptions FileOpenOptions { get; set; }
Property Value
Declaration
public FileShareMode FileShareMode { get; set; }
Property Value
Declaration
public string Host { get; set; }
Property Value
Type |
Description |
String |
The host.
|
LogErrorResponseBody
Declaration
public bool LogErrorResponseBody { get; set; }
Property Value
Declaration
public bool LogErrors { get; set; }
Property Value
Declaration
public bool LogRequest { get; set; }
Property Value
Declaration
public bool LogRequestAsDebug { get; set; }
Property Value
Declaration
public bool LogResponse { get; set; }
Property Value
Declaration
public bool LogResponseHeaders { get; set; }
Property Value
Declaration
[Obsolete("Deprecated. Use LogUrlPrefix for prefixing or Sanitation for removing sensitive data.")]
public string LogUrl { get; set; }
Property Value
Declaration
public string LogUrlPrefix { get; set; }
Property Value
Gets or sets the progress.
Declaration
public IProgress<double> Progress { get; set; }
Property Value
Gets or sets the referrer.
Declaration
public string Referer { get; set; }
Property Value
Type |
Description |
String |
The referrer.
|
RequestContent
Declaration
public ReadOnlyMemory<char> RequestContent { get; set; }
Property Value
RequestContentBytes
Declaration
public ReadOnlyMemory<byte> RequestContentBytes { get; set; }
Property Value
RequestContentType
Declaration
public string RequestContentType { get; set; }
Property Value
Declaration
public Dictionary<string, string> RequestHeaders { get; }
Property Value
RequestHttpContent
Declaration
public HttpContent RequestHttpContent { get; set; }
Property Value
Declaration
public UrlSanitationOptions Sanitation { get; }
Property Value
Declaration
public bool SingleTcpConnection { get; set; }
Property Value
Declaration
public bool ThrowOnErrorResponse { get; set; }
Property Value
Declaration
public int TimeoutMs { get; set; }
Property Value
Declaration
public string Url { get; set; }
Property Value
Type |
Description |
String |
The URL.
|
Gets or sets the user agent.
Declaration
public string UserAgent { get; set; }
Property Value
Type |
Description |
String |
The user agent.
|
Methods
SetPostData(IDictionary<String, String>)
Declaration
public void SetPostData(IDictionary<string, string> values)
Parameters
Extension Methods