2025-01-15 06:39:26 +00:00
|
|
|
using System.Diagnostics;
|
2024-04-04 01:05:10 +00:00
|
|
|
using System.Net.Http;
|
|
|
|
|
|
|
|
|
|
namespace BotSharp.Abstraction.Browsing.Models;
|
|
|
|
|
|
2025-01-15 06:39:26 +00:00
|
|
|
[DebuggerStepThrough]
|
2024-04-04 01:05:10 +00:00
|
|
|
public class HttpRequestParams
|
|
|
|
|
{
|
|
|
|
|
[JsonPropertyName("url")]
|
|
|
|
|
public string Url { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("method")]
|
|
|
|
|
public HttpMethod Method { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Http request payload
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonPropertyName("payload")]
|
|
|
|
|
public string? Payload { get; set; }
|
|
|
|
|
|
|
|
|
|
public HttpRequestParams(string url, HttpMethod method, string? payload = null)
|
|
|
|
|
{
|
2024-05-17 23:45:18 +00:00
|
|
|
Method = method;
|
2024-04-04 01:05:10 +00:00
|
|
|
Url = url;
|
|
|
|
|
Payload = payload;
|
|
|
|
|
}
|
|
|
|
|
}
|