Files
EonaCat.DoxaApi/DoxaApi/ConsoleRequest.cs
T
2026-06-21 20:10:02 +02:00

22 lines
674 B
C#

using System.Text.Json.Serialization;
namespace EonaCat.DoxaApi.Middleware
{
// This file is part of the EonaCat project(s) which is released under the Apache License.
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
internal sealed class ConsoleRequest
{
[JsonPropertyName("method")]
public string Method { get; set; } = "GET";
[JsonPropertyName("url")]
public string Url { get; set; } = "";
[JsonPropertyName("headers")]
public Dictionary<string, string>? Headers { get; set; }
[JsonPropertyName("body")]
public string? Body { get; set; }
}
}