DocumentRequest
Represents the arguments to load a document.
using AngleSharp.Dom;
using System.IO;
namespace AngleSharp.Network
{
public class DocumentRequest
{
public INode Source { get; set; }
public Url Target { get; set; }
public string Referer { get; set; }
public HttpMethod Method { get; set; }
public Stream Body { get; set; }
public string MimeType { get; set; }
public DocumentRequest(Url target)
{
Target = target;
Referer = null;
Method = HttpMethod.Get;
Body = Stream.Null;
MimeType = null;
}
}
}