Class HttpExtensionsGlobals
These are the globals for some of the important configurable settings When a HttpBehaviour is created, some of the values from here will be copied. (unless diffently specified)
Inheritance
System.Object
HttpExtensionsGlobals
Namespace:Dapplo.HttpExtensions
Assembly:Dapplo.HttpExtensions.dll
Syntax
public class HttpExtensionsGlobals
Properties
| Improve this Doc View SourceDefaultEncoding
The global default encoding
Declaration
public static Encoding DefaultEncoding { get; set; }
Returns
Type | Description |
---|---|
System.Text.Encoding |
HttpContentConverters
The global list of HttpContent converters
Declaration
public static IList<IHttpContentConverter> HttpContentConverters { get; set; }
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<IHttpContentConverter> |
HttpSettings
The global IHttpSettings
Declaration
public static IHttpSettings HttpSettings { get; set; }
Returns
Type | Description |
---|---|
IHttpSettings |
JsonSerializer
The global JsonSerializer
Declaration
public static IJsonSerializer JsonSerializer { get; set; }
Returns
Type | Description |
---|---|
IJsonSerializer |
OAuth2ExpireOffset
This offset is used in the OAuth2Setting.IsAccessTokenExpired to check the OAuth2AccessTokenExpires Now + this > OAuth2AccessTokenExpires
Declaration
public static int OAuth2ExpireOffset { get; set; }
Returns
Type | Description |
---|---|
System.Int32 |
ReadBufferSize
The global read buffer-size
Declaration
public static int ReadBufferSize { get; set; }
Returns
Type | Description |
---|---|
System.Int32 |
ThrowOnError
Global value for ThrowOnError, see IHttpBehaviour
Declaration
public static bool ThrowOnError { get; set; }
Returns
Type | Description |
---|---|
System.Boolean |
UiTaskScheduler
This value is used when a Task needs to run on the UI Thread, e.g. the EmbeddedBrowserCodeReceiver
Declaration
public static TaskScheduler UiTaskScheduler { get; set; }
Returns
Type | Description |
---|---|
System.Threading.Tasks.TaskScheduler |
UseProgressStreamContent
Global value for UseProgressStream, see IHttpBehaviour
Declaration
public static bool UseProgressStreamContent { get; set; }
Returns
Type | Description |
---|---|
System.Boolean |
ValidateResponseContentType
Global validate response content-type
Declaration
public static bool ValidateResponseContentType { get; set; }
Returns
Type | Description |
---|---|
System.Boolean |