Struct HttpProperties
Assembly: LaunchDarkly.InternalSdk.dll
Syntax
public struct HttpProperties
Fields
DefaultConnectTimeout
Declaration
public static readonly TimeSpan DefaultConnectTimeout
Field Value
DefaultReadTimeout
Declaration
public static readonly TimeSpan DefaultReadTimeout
Field Value
Properties
Declaration
public ImmutableList<KeyValuePair<string, string>> BaseHeaders { get; }
Property Value
ConnectTimeout
Declaration
public TimeSpan ConnectTimeout { get; }
Property Value
Default
Declaration
public static HttpProperties Default { get; }
Property Value
HttpExceptionConverter
Declaration
public Func<Exception, Exception> HttpExceptionConverter { get; }
Property Value
HttpMessageHandlerFactory
Declaration
public Func<HttpProperties, HttpMessageHandler> HttpMessageHandlerFactory { get; }
Property Value
Proxy
Declaration
public IWebProxy Proxy { get; }
Property Value
ReadTimeout
Declaration
public TimeSpan ReadTimeout { get; }
Property Value
Methods
Declaration
public void AddHeaders(HttpRequestMessage req)
Parameters
NewHttpClient()
Declaration
public HttpClient NewHttpClient()
Returns
NewHttpMessageHandler()
Declaration
public HttpMessageHandler NewHttpMessageHandler()
Returns
Declaration
public HttpProperties WithApplicationTags(ApplicationInfo applicationInfo)
Parameters
Returns
WithAuthorizationKey(string)
Declaration
public HttpProperties WithAuthorizationKey(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
WithConnectTimeout(TimeSpan)
Declaration
public HttpProperties WithConnectTimeout(TimeSpan newConnectTimeout)
Parameters
Type |
Name |
Description |
TimeSpan |
newConnectTimeout |
|
Returns
Declaration
public HttpProperties WithHeader(string name, string value)
Parameters
Returns
WithHttpExceptionConverter(Func<Exception, Exception>)
Declaration
public HttpProperties WithHttpExceptionConverter(Func<Exception, Exception> newHttpExceptionConverter)
Parameters
Returns
WithHttpMessageHandlerFactory(Func<HttpProperties, HttpMessageHandler>)
Declaration
public HttpProperties WithHttpMessageHandlerFactory(Func<HttpProperties, HttpMessageHandler> factory)
Parameters
Returns
WithProxy(IWebProxy)
Declaration
public HttpProperties WithProxy(IWebProxy newProxy)
Parameters
Returns
WithReadTimeout(TimeSpan)
Declaration
public HttpProperties WithReadTimeout(TimeSpan newReadTimeout)
Parameters
Type |
Name |
Description |
TimeSpan |
newReadTimeout |
|
Returns
WithUserAgent(string)
Declaration
public HttpProperties WithUserAgent(string userAgent)
Parameters
Type |
Name |
Description |
string |
userAgent |
|
Returns
WithUserAgent(string, string)
Declaration
public HttpProperties WithUserAgent(string userAgentName, string userAgentVersion)
Parameters
Type |
Name |
Description |
string |
userAgentName |
|
string |
userAgentVersion |
|
Returns
WithWrapper(string, string)
Declaration
public HttpProperties WithWrapper(string wrapperName, string wrapperVersion)
Parameters
Type |
Name |
Description |
string |
wrapperName |
|
string |
wrapperVersion |
|
Returns