• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Dapplo.HttpExtensions
    • AuthorizationExtensions
    • HttpBehaviour
    • HttpBehaviourExtensions
    • HttpClientExtensions
    • HttpContentExtensions
    • HttpExtensionsGlobals
    • HttpRequestMessageConfiguration
    • HttpRequestMessageExtensions
    • HttpResponse
    • HttpResponse<TResponse, TErrorResponse>
    • HttpResponse<TResponse>
    • HttpResponseMessageExtensions
    • HttpResponseWithError<TErrorResponse>
    • IChangeableHttpBehaviour
    • IHttpBehaviour
    • IHttpContentConverter
    • IHttpRequestConfiguration
    • IHttpSettings
    • IJsonSerializer
    • MiscExtensions
    • UriActionExtensions
    • UriModifyExtensions
    • UriParseExtensions
  • Dapplo.HttpExtensions.ContentConverter
    • ByteArrayHttpContentConverter
    • DefaultJsonHttpContentConverter
    • DefaultJsonHttpContentConverterConfiguration
    • FormUriEncodedContentConverter
    • StreamHttpContentConverter
    • StringConfiguration
    • StringHttpContentConverter
    • SyndicationFeedHttpContentConverter
    • XDocumentHttpContentConverter
  • Dapplo.HttpExtensions.Extensions
    • EnumExtensions
    • HttpBehaviourExtensions
    • StringExtensions
    • TypeExtensions
  • Dapplo.HttpExtensions.Factory
    • HttpClientFactory
    • HttpContentFactory
    • HttpMessageHandlerFactory
    • HttpRequestMessageFactory
    • WebProxyFactory
  • Dapplo.HttpExtensions.JsonNet
    • JsonNetJsonSerializer
    • ReadOnlyConsideringContractResolver
  • Dapplo.HttpExtensions.JsonSimple
    • DataContractJsonSerializerStrategy
    • DefaultJsonHttpContentConverter
    • IJsonSerializerStrategy
    • JsonExtensionDataAttribute
    • PocoJsonSerializerStrategy
    • SimpleJson
    • SimpleJsonSerializer
  • Dapplo.HttpExtensions.Listener
    • HttpListenerContextExtensions
    • ListenerPortExtensions
    • UriHttpListenerExtensions
  • Dapplo.HttpExtensions.OAuth
    • AuthorizeModes
    • BaseOAuthSettings
    • GrantTypes
    • ICodeReceiverSettings
    • IOAuth1Token
    • IOAuth2Token
    • IOAuthCodeReceiver
    • OAuth1HttpBehaviour
    • OAuth1HttpBehaviourFactory
    • OAuth1HttpMessageHandler
    • OAuth1Parameters
    • OAuth1RequestConfiguration
    • OAuth1Settings
    • OAuth1SignatureTransports
    • OAuth1SignatureTypes
    • OAuth1Token
    • OAuth2HttpBehaviourFactory
    • OAuth2HttpMessageHandler
    • OAuth2Settings
    • OAuth2TokenResponse
    • OAuthExtensions
  • Dapplo.HttpExtensions.OAuth.CodeReceivers
    • EmbeddedBrowserCodeReceiver
  • Dapplo.HttpExtensions.OAuth.Desktop
    • OAuthLoginForm
  • Dapplo.HttpExtensions.Support
    • HttpPartAttribute
    • HttpParts
    • HttpRequestAttribute
    • HttpResponseAttribute
    • HttpSettings
    • MediaTypes
    • ProgressStream
    • ProgressStreamReport
  • Dapplo.HttpExtensions.SystemTextJson
    • SystemTextJsonSerializer
  • Dapplo.HttpExtensions.WinForms.ContentConverter
    • BitmapConfiguration
    • BitmapHttpContentConverter
  • Dapplo.HttpExtensions.Wpf.ContentConverter
    • BitmapSourceConfiguration
    • BitmapSourceHttpContentConverter

Class HttpSettings

This class contains the default settings for the proxy / httpclient These can be modified, are on a global "application" scale. Most have their normal defaults, which would also normally be used, some have special settings The default values and the property descriptions are in the IHttpSettings (which can be used by Dapplo.Config)

Inheritance
System.Object
HttpSettings
Implements
IHttpSettings
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Dapplo.HttpExtensions.Support
Assembly: Dapplo.HttpExtensions.dll
Syntax
public class HttpSettings : IHttpSettings

Properties

| Improve this Doc View Source

AllowAutoRedirect

For more details, click here

Declaration
public bool AllowAutoRedirect { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

AllowPipelining

For more details, click here

Declaration
public bool AllowPipelining { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

AuthenticationLevel

Declaration
public AuthenticationLevel AuthenticationLevel { get; set; }
Property Value
Type Description
System.Net.Security.AuthenticationLevel
| Improve this Doc View Source

ClientCertificateOptions

For more details, click here

Declaration
public ClientCertificateOption ClientCertificateOptions { get; set; }
Property Value
Type Description
ClientCertificateOption
| Improve this Doc View Source

ClientCertificates

Add your client certificates here, so they are passed to the handler.

Declaration
public X509CertificateCollection ClientCertificates { get; set; }
Property Value
Type Description
System.Security.Cryptography.X509Certificates.X509CertificateCollection
| Improve this Doc View Source

ContinueTimeout

For more details, click here

Declaration
public TimeSpan ContinueTimeout { get; set; }
Property Value
Type Description
TimeSpan
| Improve this Doc View Source

Credentials

For more details, click here

Declaration
public ICredentials Credentials { get; set; }
Property Value
Type Description
ICredentials
| Improve this Doc View Source

DefaultDecompressionMethods

For more details, click here

Declaration
public DecompressionMethods DefaultDecompressionMethods { get; set; }
Property Value
Type Description
DecompressionMethods
| Improve this Doc View Source

DefaultUserAgent

The default User-Agent value to use, a lot of services don't like it when this is empty or the behaviour depends on the value

Declaration
public string DefaultUserAgent { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Expect100Continue

When true the configured proxy will used the default user credentials

Declaration
public bool Expect100Continue { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

IgnoreSslCertificateErrors

If true SSL Certificate checks are ignored.

Declaration
public bool IgnoreSslCertificateErrors { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

ImpersonationLevel

Declaration
public TokenImpersonationLevel ImpersonationLevel { get; set; }
Property Value
Type Description
System.Security.Principal.TokenImpersonationLevel
| Improve this Doc View Source

MaxAutomaticRedirections

For more details, click here and here

Declaration
public int MaxAutomaticRedirections { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

MaxRequestContentBufferSize

For more details, click here

Declaration
public long MaxRequestContentBufferSize { get; set; }
Property Value
Type Description
System.Int64
| Improve this Doc View Source

MaxResponseContentBufferSize

For more details, click here

Declaration
public long MaxResponseContentBufferSize { get; set; }
Property Value
Type Description
System.Int64
| Improve this Doc View Source

MaxResponseHeadersLength

For more details, click here Default would have been 64, this is increased to 256

Declaration
public int MaxResponseHeadersLength { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

PreAuthenticate

For more details, click here And here

Declaration
public bool PreAuthenticate { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

ProxyBypassList

For more details, click here

Declaration
public string[] ProxyBypassList { get; set; }
Property Value
Type Description
System.String[]
| Improve this Doc View Source

ProxyBypassOnLocal

For more details, click here

Declaration
public bool ProxyBypassOnLocal { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

ProxyCredentials

For more details, click here

Declaration
public ICredentials ProxyCredentials { get; set; }
Property Value
Type Description
ICredentials
| Improve this Doc View Source

ProxyUri

The Uri for the proxy to use, when the UseDefaultProxy is set to false

Declaration
public Uri ProxyUri { get; set; }
Property Value
Type Description
Uri
| Improve this Doc View Source

ReadWriteTimeout

For more details, click here

Declaration
public int ReadWriteTimeout { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

RequestCacheLevel

Declaration
public RequestCacheLevel RequestCacheLevel { get; set; }
Property Value
Type Description
System.Net.Cache.RequestCacheLevel
| Improve this Doc View Source

RequestTimeout

For more details, click here

Declaration
public TimeSpan RequestTimeout { get; set; }
Property Value
Type Description
TimeSpan
| Improve this Doc View Source

UseCookies

For more details, click here And here

Declaration
public bool UseCookies { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

UseDefaultCredentials

When true every http request will supply the default user credentials when the server asks for them

Declaration
public bool UseDefaultCredentials { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

UseDefaultCredentialsForProxy

When true the configured proxy will used the default user credentials

Declaration
public bool UseDefaultCredentialsForProxy { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

UseDefaultProxy

When true the default system proxy is used

Declaration
public bool UseDefaultProxy { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

UseProxy

If true, every request is made via the configured or default proxy

Declaration
public bool UseProxy { get; set; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

ShallowClone()

Return a memberwise clone of the HttpSettings. This is needed by the HttpBehaviour to prevent that a modification of a copy is changing the global settings!

Declaration
public IHttpSettings ShallowClone()
Returns
Type Description
IHttpSettings

Implements

IHttpSettings
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © Dapplo