HttpHeadersOptions
Configures custom HTTP headers sent with each request to the Telerik Reporting REST Service.
The headers are sent only to the origin of the REST Service. An Authorization header overrides the token of the RestServiceConnectionInfo.
Definition
Namespace:Telerik.ReportViewer.Common
Assembly:Telerik.ReportViewer.WinForms.dll
Syntax:
public class HttpHeadersOptions
Inheritance: objectHttpHeadersOptions
Constructors
Initializes a new instance of the HttpHeadersOptions class.
public HttpHeadersOptions()
Properties
GetHeadersAsync
Func<Task<IDictionary<string, string>>>
Gets or sets an asynchronous function that returns the header names and values. Takes precedence over Headers.
public Func<Task<IDictionary<string, string>>> GetHeadersAsync { get; set; }
The function is called on a thread pool thread and its result is cached for RefreshInterval seconds.
Headers
IDictionary<string, string>
Gets or sets the header names and values.
public IDictionary<string, string> Headers { get; set; }
Gets or sets the interval in seconds for which the result of GetHeadersAsync is cached. The default value is 300; 0 resolves the headers before every request.
public int RefreshInterval { get; set; }