Show / Hide Table of Contents

    Class HttpManagerOptions

    Specifies options that is related to the HttpManager class.

    Inheritance
    System.Object
    HttpManagerOptions
    Namespace: Cuemon.Net.Http
    Assembly: Cuemon.Net.dll
    Syntax
    public class HttpManagerOptions

    Constructors

    | Improve this Doc

    HttpManagerOptions()

    Initializes a new instance of the HttpManagerOptions class.

    Declaration
    public HttpManagerOptions()
    Remarks

    The following table shows the initial property values for an instance of HttpManagerOptions.

    PropertyInitial Value
    DisposeHandlertrue
    DefaultRequestHeadersConnection: Keep-Alive
    HandlerFactorySystem.Net.Http.HttpClientHandler initialized with System.Net.Http.HttpClientHandler.AutomaticDecompression for GZip|Deflate and System.Net.Http.HttpClientHandler.MaxAutomaticRedirections to 10.
    Timeout2 minutes

    Properties

    | Improve this Doc

    DefaultRequestHeaders

    Gets the default headers which should be sent with each request.

    Declaration
    public Dictionary<string, string> DefaultRequestHeaders { get; }
    Property Value
    Type Description
    System.Collections.Generic.Dictionary<System.String, System.String>

    The default headers which should be sent with each request.

    | Improve this Doc

    DisposeHandler

    Gets or sets a value indicating whether the inner handler should be disposed of by Dispose().

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

    true if if the inner handler should be disposed of by Dispose(); otherwise, false if you intend to reuse the inner handler.

    | Improve this Doc

    HandlerFactory

    Gets the HTTP handler stack to use for sending requests.

    Declaration
    public Func<HttpMessageHandler> HandlerFactory { get; }
    Property Value
    Type Description
    System.Func<System.Net.Http.HttpMessageHandler>

    The HTTP handler stack to use for sending requests.

    | Improve this Doc

    Timeout

    Gets or sets the timespan to wait before the request times out. Default is 2 minutes.

    Declaration
    public TimeSpan Timeout { get; set; }
    Property Value
    Type Description
    System.TimeSpan

    The timespan to wait before the request times out.

    Methods

    | Improve this Doc

    SetHandlerFactory<T>(Action<T>)

    Sets the HandlerFactory property using the specified setup.

    Declaration
    public void SetHandlerFactory<T>(Action<T> setup)
        where T : HttpMessageHandler
    Parameters
    Type Name Description
    System.Action<T> setup

    The T which need to be configured.

    Type Parameters
    Name Description
    T

    The type of the System.Net.Http.HttpMessageHandler to use.

    Extension Methods

    ConverterExtensions.ParseWith<TSource, TResult>(TSource, Func<TSource, TResult>)
    ConverterExtensions.ParseWith<TSource, T, TResult>(TSource, Func<TSource, T, TResult>, T)
    ConverterExtensions.ParseWith<TSource, T1, T2, TResult>(TSource, Func<TSource, T1, T2, TResult>, T1, T2)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, TResult>(TSource, Func<TSource, T1, T2, T3, TResult>, T1, T2, T3)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, TResult>(TSource, Func<TSource, T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
    ConverterExtensions.As<TResult>(Object)
    ConverterExtensions.As<TResult>(Object, TResult)
    ConverterExtensions.As<TResult>(Object, TResult, IFormatProvider)
    DelegateUtilityExtensions.Wrap<TResult>(TResult)
    DelegateUtilityExtensions.DynamicWrap<TResult>(TResult)
    TweakerExtensions.Adjust<T>(T, Func<T, T>)
    TypeUtilityExtensions.Is<T>(Object)
    TypeUtilityExtensions.IsNot<T>(Object)
    TypeUtilityExtensions.IsNullable<T>(T)
    WrapperExtensions.UseWrapper<T>(T, Action<IDictionary<String, Object>>)
    WrapperExtensions.UseWrapper<T>(T, MemberInfo, Action<IDictionary<String, Object>>)
    EnumerableUtilityExtensions.Yield<TSource>(TSource)
    HashUtilityExtensions.ComputeHash(Object, Action<HashOptions>)
    HmacUtilityExtensions.ComputeKeyedHash(Object, Byte[], Action<KeyedHashOptions>)
    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX