BotSharp/src/Infrastructure/BotSharp.Abstraction/Browsing/Models/WebPageResponseData.cs

27 lines
842 B
C#
Raw Normal View History

2024-08-14 03:44:53 +00:00
namespace BotSharp.Abstraction.Browsing.Models;
public class WebPageResponseData
{
public string Url { get; set; } = null!;
public string PostData { get; set; } = null!;
public string ResponseData { get; set; } = null!;
public bool ResponseInMemory { get; set; }
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
2025-03-18 20:12:44 +00:00
public string Method { get; set; }
public List<WebPageCookieData> Cookies { get; set; }
public int ResponseCode { get; set; }
2024-10-18 23:36:48 +00:00
public override string ToString()
{
return $"{Url} {ResponseData.Length}";
}
2024-08-14 03:44:53 +00:00
}
2025-03-18 20:12:44 +00:00
public class WebPageCookieData
{
public string Name { get; set; } = null!;
public string Value { get; set; } = null!;
public string Domain { get; set; } = null!;
public string Path { get; set; } = null!;
public float Expires { get; set; }
}