HttpProvider Class

Definition

An IHttpProvider implementation using standard .NET libraries.

public class HttpProvider : IDisposable, Microsoft.Graph.IHttpProvider
type HttpProvider = class
    interface IHttpProvider
    interface IDisposable
Public Class HttpProvider
Implements IDisposable, IHttpProvider
Inheritance
HttpProvider
Implements

Constructors

HttpProvider(HttpClientHandler, Boolean, ISerializer)

Constructs a new HttpProvider.

HttpProvider(HttpMessageHandler, Boolean, ISerializer)

Constructs a new HttpProvider.

HttpProvider(ISerializer)

Constructs a new HttpProvider.

Properties

CacheControlHeader

Gets or sets the cache control header for requests;

OverallTimeout

Gets or sets the overall request timeout.

Serializer

Gets a serializer for serializing and deserializing JSON objects.

Methods

Dispose()

Disposes the HttpClient and HttpClientHandler instances.

SendAsync(HttpRequestMessage)

Sends the request.

SendAsync(HttpRequestMessage, HttpCompletionOption, CancellationToken)

Sends the request.

Applies to