Improve this Doc
View Source
Class HttpBehaviour
This is the default implementation of the IHttpBehaviour, see IHttpBehaviour for details
Most values are initialized via the HttpExtensionsGlobals
Inheritance
System.Object
HttpBehaviour
Namespace:Dapplo.HttpExtensions
Assembly:Dapplo.HttpExtensions.dll
Syntax
public class HttpBehaviour : IChangeableHttpBehaviour, IHttpBehaviour
Properties
|
Improve this Doc
View Source
Current
Retrieve the current IHttpBehaviour from the CallContext, if there is nothing available, create and make it current
This never returns null
Declaration
public static IHttpBehaviour Current { get; }
Returns
|
Improve this Doc
View Source
DefaultEncoding
Declaration
public Encoding DefaultEncoding { get; set; }
Returns
Type |
Description |
System.Text.Encoding |
|
|
Improve this Doc
View Source
HttpCompletionOption
The ResponseHeadersRead forces a pause between the initial response and reading the content, this is needed for better error handling and progress
Turning this to ResponseContentRead might change the behaviour
Declaration
public HttpCompletionOption HttpCompletionOption { get; set; }
Returns
Type |
Description |
System.Net.Http.HttpCompletionOption |
|
|
Improve this Doc
View Source
HttpContentConverters
Declaration
public IList<IHttpContentConverter> HttpContentConverters { get; set; }
Returns
|
Improve this Doc
View Source
HttpSettings
Declaration
public IHttpSettings HttpSettings { get; set; }
Returns
|
Improve this Doc
View Source
JsonSerializer
Declaration
public IJsonSerializer JsonSerializer { get; set; }
Returns
|
Improve this Doc
View Source
OnHttpClientCreated
Declaration
public Action<HttpClient> OnHttpClientCreated { get; set; }
Returns
Type |
Description |
System.Action<System.Net.Http.HttpClient> |
|
|
Improve this Doc
View Source
OnHttpContentCreated
Declaration
public Func<HttpContent, HttpContent> OnHttpContentCreated { get; set; }
Returns
Type |
Description |
System.Func<System.Net.Http.HttpContent, System.Net.Http.HttpContent> |
|
|
Improve this Doc
View Source
OnHttpMessageHandlerCreated
Declaration
public Func<HttpMessageHandler, HttpMessageHandler> OnHttpMessageHandlerCreated { get; set; }
Returns
Type |
Description |
System.Func<System.Net.Http.HttpMessageHandler, System.Net.Http.HttpMessageHandler> |
|
|
Improve this Doc
View Source
OnHttpRequestMessageCreated
Declaration
public Func<HttpRequestMessage, HttpRequestMessage> OnHttpRequestMessageCreated { get; set; }
Returns
Type |
Description |
System.Func<System.Net.Http.HttpRequestMessage, System.Net.Http.HttpRequestMessage> |
|
|
Improve this Doc
View Source
ReadBufferSize
Declaration
public int ReadBufferSize { get; set; }
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
ThrowOnError
Declaration
public bool ThrowOnError { get; set; }
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
UploadProgress
Declaration
public IProgress<float> UploadProgress { get; set; }
Returns
Type |
Description |
System.IProgress<System.Single> |
|
|
Improve this Doc
View Source
UseProgressStreamContent
Declaration
public bool UseProgressStreamContent { get; set; }
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ValidateResponseContentType
Declaration
public bool ValidateResponseContentType { get; set; }
Returns
Type |
Description |
System.Boolean |
|
Methods
|
Improve this Doc
View Source
Clone()
Declaration
public IChangeableHttpBehaviour Clone()
Returns
|
Improve this Doc
View Source
MakeCurrent()
Declaration
public void MakeCurrent()