Partajați prin


LoggingHttpMessageHandler Class

Definition

Handles logging of the lifecycle for an HTTP request.

public ref class LoggingHttpMessageHandler : System::Net::Http::DelegatingHandler
public class LoggingHttpMessageHandler : System.Net.Http.DelegatingHandler
type LoggingHttpMessageHandler = class
    inherit DelegatingHandler
Public Class LoggingHttpMessageHandler
Inherits DelegatingHandler
Inheritance
LoggingHttpMessageHandler

Constructors

LoggingHttpMessageHandler(ILogger, HttpClientFactoryOptions)

Initializes a new instance of the LoggingHttpMessageHandler class with a specified logger and options.

LoggingHttpMessageHandler(ILogger)

Initializes a new instance of the LoggingHttpMessageHandler class with a specified logger.

Properties

InnerHandler

Gets or sets the inner handler which processes the HTTP response messages.

(Inherited from DelegatingHandler)

Methods

Dispose()

Releases the unmanaged resources and disposes of the managed resources used by the HttpMessageHandler.

(Inherited from HttpMessageHandler)
Dispose(Boolean)

Releases the unmanaged resources used by the DelegatingHandler, and optionally disposes of the managed resources.

(Inherited from DelegatingHandler)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Send(HttpRequestMessage, CancellationToken)

Sends an HTTP request to the inner handler to send to the server.

Send(HttpRequestMessage, CancellationToken)

Sends an HTTP request to the inner handler to send to the server.

(Inherited from DelegatingHandler)
SendAsync(HttpRequestMessage, CancellationToken)

Sends an HTTP request to the inner handler to send to the server as an asynchronous operation.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to