• 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 OAuth1HttpBehaviour

Implementation of the IHttpBehaviour which bases upon the HttpBehaviour and extends it with special OAuth 1 functionality

Inheritance
System.Object
OAuth1HttpBehaviour
Implements
IChangeableHttpBehaviour
IHttpBehaviour
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.OAuth
Assembly: Dapplo.HttpExtensions.OAuth.dll
Syntax
public class OAuth1HttpBehaviour : IChangeableHttpBehaviour, IHttpBehaviour

Constructors

| Improve this Doc View Source

OAuth1HttpBehaviour(IHttpBehaviour)

Create a OAuthHttpBehaviour

Declaration
public OAuth1HttpBehaviour(IHttpBehaviour httpBehaviour = null)
Parameters
Type Name Description
IHttpBehaviour httpBehaviour

IHttpBehaviour to wrap

Properties

| Improve this Doc View Source

BeforeSend

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>
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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>
| Improve this Doc View Source

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
| Improve this Doc View Source

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>
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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>>
| Improve this Doc View Source

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>
| Improve this Doc View Source

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>
| Improve this Doc View Source

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>
| Improve this Doc View Source

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>
| Improve this Doc View Source

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
| Improve this Doc View Source

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>
| Improve this Doc View Source

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
| Improve this Doc View Source

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>
| Improve this Doc View Source

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
| Improve this Doc View Source

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 Source

MakeCurrent()

Set this IHttpBehaviour on the CallContext

Declaration
public void MakeCurrent()
| Improve this Doc View Source

ShallowClone()

Make a memberwise clone of the object, this is "shallow".

Declaration
public IChangeableHttpBehaviour ShallowClone()
Returns
Type Description
IChangeableHttpBehaviour

"Shallow" Cloned instance of IChangeableHttpBehaviour

Implements

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