API Reference
OfficeDocumentWebReader
Bounded, thread-safe HTTP transport over a caller-configured OfficeDocumentReader.
Inheritance
- Object
- OfficeDocumentWebReader
Remarks
The caller owns the Reader and HttpClient lifetimes. This type does not mutate or dispose either. URI validation provides defense in depth for schemes, allowlists, credentials, and non-public IP literals; it is not an SSRF isolation boundary. When reading an untrusted URI, configure the caller-owned HTTP handler to validate resolved addresses at connection time and validate each redirect before sending it.
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
Constructors
public OfficeDocumentWebReader(OfficeDocumentReader reader, HttpClient httpClient, ReaderWebOptions options = null) #Creates a bounded web reader over existing Reader and HTTP client instances.
Parameters
- reader OfficeIMO.Reader.OfficeDocumentReader
- httpClient System.Net.Http.HttpClient
- options OfficeIMO.Reader.Web.ReaderWebOptions = null
Methods
public async Task<String> ConvertToMarkdownAsync(Uri uri, String sourceName = null, ReaderOptions readerOptions = null, CancellationToken cancellationToken = default) #Task<String>Downloads one bounded HTTP(S) response and returns the Markdown emitted by the same rich Reader pipeline.
Parameters
- uri System.Uri
- sourceName System.String = null
- readerOptions OfficeIMO.Reader.ReaderOptions = null
- cancellationToken System.Threading.CancellationToken = default
public async Task<OfficeDocumentReadResult> ReadDocumentAsync(Uri uri, String sourceName = null, ReaderOptions readerOptions = null, CancellationToken cancellationToken = default) #Task<OfficeDocumentReadResult>Downloads one bounded HTTP(S) response and routes its body through the configured Reader instance.
Parameters
- uri System.Uri
- sourceName System.String = null
- readerOptions OfficeIMO.Reader.ReaderOptions = null
- cancellationToken System.Threading.CancellationToken = default
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object