Show / Hide Table of Contents

Class AutomaticHttpClientHandler

A HttpMessageHandler that retrieves http response messages from from local storage if they exist or if they do not, from the http endpoint and then stores them for future retrieval

Inheritance
Object
HttpMessageHandler
HttpClientHandler
AutomaticHttpClientHandler
Inherited Members
HttpClientHandler.Dispose(Boolean)
HttpClientHandler.AllowAutoRedirect
HttpClientHandler.AutomaticDecompression
System.Net.Http.HttpClientHandler.CheckCertificateRevocationList
HttpClientHandler.ClientCertificateOptions
System.Net.Http.HttpClientHandler.ClientCertificates
HttpClientHandler.CookieContainer
HttpClientHandler.Credentials
System.Net.Http.HttpClientHandler.DefaultProxyCredentials
HttpClientHandler.MaxAutomaticRedirections
System.Net.Http.HttpClientHandler.MaxConnectionsPerServer
HttpClientHandler.MaxRequestContentBufferSize
System.Net.Http.HttpClientHandler.MaxResponseHeadersLength
HttpClientHandler.PreAuthenticate
System.Net.Http.HttpClientHandler.Properties
HttpClientHandler.Proxy
System.Net.Http.HttpClientHandler.ServerCertificateCustomValidationCallback
System.Net.Http.HttpClientHandler.SslProtocols
HttpClientHandler.SupportsAutomaticDecompression
HttpClientHandler.SupportsProxy
HttpClientHandler.SupportsRedirectConfiguration
HttpClientHandler.UseCookies
HttpClientHandler.UseDefaultCredentials
HttpClientHandler.UseProxy
HttpMessageHandler.Dispose()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: FakeHttp
Assembly: FakeHttp.dll
Syntax
public sealed class AutomaticHttpClientHandler : HttpClientHandler, IDisposable

Constructors

| Improve this Doc View Source

AutomaticHttpClientHandler(IResources)

Declaration
public AutomaticHttpClientHandler(IResources resources)
Parameters
Type Name Description
IResources resources

An object that can access stored response

Exceptions
Type Condition
ArgumentNullException
| Improve this Doc View Source

AutomaticHttpClientHandler(IResponseStore)

ctor

Declaration
public AutomaticHttpClientHandler(IResponseStore store)
Parameters
Type Name Description
IResponseStore store

The storage mechanism for responses

Exceptions
Type Condition
ArgumentNullException

Methods

| Improve this Doc View Source

SendAsync(HttpRequestMessage, CancellationToken)

Override the base class to capture and store the response message if it doesn't already exist in storage

Declaration
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
Parameters
Type Name Description
HttpRequestMessage request

The HttpRequestMessage to find or retreive from the endpoint

CancellationToken cancellationToken
Returns
Type Description
Task<HttpResponseMessage>

The response message

Overrides
HttpClientHandler.SendAsync(HttpRequestMessage, CancellationToken)
  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX