Partilhar via


HttpDocumentRetriever Class

Definition

Retrieves metadata information using HttpClient.

public class HttpDocumentRetriever : Microsoft.IdentityModel.Protocols.IDocumentRetriever
type HttpDocumentRetriever = class
    interface IDocumentRetriever
Public Class HttpDocumentRetriever
Implements IDocumentRetriever
Inheritance
HttpDocumentRetriever
Implements

Constructors

HttpDocumentRetriever()

Initializes a new instance of the HttpDocumentRetriever class.

HttpDocumentRetriever(HttpClient)

Initializes a new instance of the HttpDocumentRetriever class with a specified httpClient.

Fields

ResponseContent

The key is used to add response content into Data.

StatusCode

The key is used to add status code into Data.

Properties

DefaultSendAdditionalHeaderData

Gets or sets whether additional default headers are added to a HttpRequestMessage headers. Set to true by default.

RequireHttps

Requires Https secure channel for sending requests.. This is turned ON by default for security reasons. It is RECOMMENDED that you do not allow retrieval from http addresses by default.

SendAdditionalHeaderData

Gets or sets whether additional headers are added to a HttpRequestMessage headers

Methods

GetDocumentAsync(String, CancellationToken)

Returns a task which contains a string converted from remote document when completed, by using the provided address.

Applies to