Class OAuth1HttpBehaviour
Implementation of the IHttpBehaviour which bases upon the HttpBehaviour and extends it with special OAuth 1 functionality
Inheritance
Inherited Members
Namespace: Dapplo.HttpExtensions.OAuth
Assembly: Dapplo.HttpExtensions.OAuth.dll
Syntax
public class OAuth1HttpBehaviour : IChangeableHttpBehaviour, IHttpBehaviour
Constructors
| Improve this Doc View SourceOAuth1HttpBehaviour(IHttpBehaviour)
Create a OAuthHttpBehaviour
Declaration
public OAuth1HttpBehaviour(IHttpBehaviour httpBehaviour = null)
Parameters
Type | Name | Description |
---|---|---|
IHttpBehaviour | httpBehaviour | IHttpBehaviour to wrap |
Properties
| Improve this Doc View SourceBeforeSend
Set this function if you want to modify the request message that is send to the service
Declaration
public Action<HttpRequestMessage> BeforeSend { get; set; }
Property Value
Type | Description |
---|---|
Action<HttpRequestMessage> |
CookieContainer
The IHttpBehaviour is used to control the behaviour of all operations in the HttpExtensions library.
Declaration
public CookieContainer CookieContainer { get; set; }
Property Value
Type | Description |
---|---|
CookieContainer |
DefaultEncoding
The IHttpBehaviour is used to control the behaviour of all operations in the HttpExtensions library.
Declaration
public Encoding DefaultEncoding { get; set; }
Property Value
Type | Description |
---|---|
Encoding |
DownloadProgress
The IHttpBehaviour is used to control the behaviour of all operations in the HttpExtensions library.
Declaration
public Action<float> DownloadProgress { get; set; }
Property Value
Type | Description |
---|---|
Action<System.Single> |
HttpCompletionOption
The IHttpBehaviour is used to control the behaviour of all operations in the HttpExtensions library.
Declaration
public HttpCompletionOption HttpCompletionOption { get; set; }
Property Value
Type | Description |
---|---|
HttpCompletionOption |
HttpContentConverters
The IHttpBehaviour is used to control the behaviour of all operations in the HttpExtensions library.
Declaration
public IList<IHttpContentConverter> HttpContentConverters { get; set; }
Property Value
Type | Description |
---|---|
IList<IHttpContentConverter> |
HttpSettings
The IHttpBehaviour is used to control the behaviour of all operations in the HttpExtensions library.
Declaration
public IHttpSettings HttpSettings { get; set; }
Property Value
Type | Description |
---|---|
IHttpSettings |
JsonSerializer
The IHttpBehaviour is used to control the behaviour of all operations in the HttpExtensions library.
Declaration
public IJsonSerializer JsonSerializer { get; set; }
Property Value
Type | Description |
---|---|
IJsonSerializer |
OnAccessTokenValues
Set this function if you want to process any additional access token values
Declaration
public Action<IDictionary<string, string>> OnAccessTokenValues { get; set; }
Property Value
Type | Description |
---|---|
Action<IDictionary<System.String, System.String>> |
OnHttpClientCreated
The IHttpBehaviour is used to control the behaviour of all operations in the HttpExtensions library.
Declaration
public Action<HttpClient> OnHttpClientCreated { get; set; }
Property Value
Type | Description |
---|---|
Action<HttpClient> |
OnHttpContentCreated
The IHttpBehaviour is used to control the behaviour of all operations in the HttpExtensions library.
Declaration
public Func<HttpContent, HttpContent> OnHttpContentCreated { get; set; }
Property Value
Type | Description |
---|---|
Func<HttpContent, HttpContent> |
OnHttpMessageHandlerCreated
The IHttpBehaviour is used to control the behaviour of all operations in the HttpExtensions library.
Declaration
public Func<HttpMessageHandler, HttpMessageHandler> OnHttpMessageHandlerCreated { get; set; }
Property Value
Type | Description |
---|---|
Func<HttpMessageHandler, HttpMessageHandler> |
OnHttpRequestMessageCreated
The IHttpBehaviour is used to control the behaviour of all operations in the HttpExtensions library.
Declaration
public Func<HttpRequestMessage, HttpRequestMessage> OnHttpRequestMessageCreated { get; set; }
Property Value
Type | Description |
---|---|
Func<HttpRequestMessage, HttpRequestMessage> |
ReadBufferSize
The IHttpBehaviour is used to control the behaviour of all operations in the HttpExtensions library.
Declaration
public int ReadBufferSize { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
RequestConfigurations
The IHttpBehaviour is used to control the behaviour of all operations in the HttpExtensions library.
Declaration
public IDictionary<string, IHttpRequestConfiguration> RequestConfigurations { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<System.String, IHttpRequestConfiguration> |
ThrowOnError
The IHttpBehaviour is used to control the behaviour of all operations in the HttpExtensions library.
Declaration
public bool ThrowOnError { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
UploadProgress
The IHttpBehaviour is used to control the behaviour of all operations in the HttpExtensions library.
Declaration
public Action<float> UploadProgress { get; set; }
Property Value
Type | Description |
---|---|
Action<System.Single> |
UseProgressStream
The IHttpBehaviour is used to control the behaviour of all operations in the HttpExtensions library.
Declaration
public bool UseProgressStream { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ValidateResponseContentType
The IHttpBehaviour is used to control the behaviour of all operations in the HttpExtensions library.
Declaration
public bool ValidateResponseContentType { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceMakeCurrent()
Set this IHttpBehaviour on the CallContext
Declaration
public void MakeCurrent()
ShallowClone()
Make a memberwise clone of the object, this is "shallow".
Declaration
public IChangeableHttpBehaviour ShallowClone()
Returns
Type | Description |
---|---|
IChangeableHttpBehaviour | "Shallow" Cloned instance of IChangeableHttpBehaviour |