mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-09-27 01:33:37 +00:00
20 lines
678 B
C#
20 lines
678 B
C#
namespace AIStudio.Tools;
|
|
|
|
public sealed class HTMLParserWebPage
|
|
{
|
|
public required Uri RequestedUrl { get; init; }
|
|
|
|
public required Uri FinalUrl { get; init; }
|
|
|
|
public required string ContentType { get; init; }
|
|
|
|
/// <summary>
|
|
/// The response body as text, as the server sent it.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Kept as text rather than parsed, because what it is depends on the content type: an HTML
|
|
/// page is parsed by the retrieval service, while a JSON or plain text document must never
|
|
/// be, since an HTML parser would read every angle bracket in it as markup.
|
|
/// </remarks>
|
|
public required string Body { get; init; }
|
|
} |