HttpDocumentRetriever Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기