Show / Hide Table of Contents

Class CapturingHttpClientHandler

A HttpMessageHandler that retrieves http response messages from from the http endpoint and then stores them for future retrieval

Inheritance
Object
HttpMessageHandler
HttpClientHandler
CapturingHttpClientHandler
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 CapturingHttpClientHandler : HttpClientHandler, IDisposable

Constructors

| Improve this Doc View Source

CapturingHttpClientHandler(IResources)

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

An object that can access stored response

Exceptions
Type Condition
ArgumentNullException
| Improve this Doc View Source

CapturingHttpClientHandler(IResponseStore)

ctor

Declaration
public CapturingHttpClientHandler(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

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

The HttpRequestMessage to capture and store

CancellationToken cancellationToken
Returns
Type Description
Task<HttpResponseMessage>

The stored response message

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