namespace NpgsqlRest.Proxy; /// /// Represents the response from a proxy request. /// public class ProxyResponse { /// /// HTTP status code from the proxy response. /// public int StatusCode { get; set; } /// /// Response body as string. /// public string? Body { get; set; } /// /// Response headers as JSON object string. /// public string? Headers { get; set; } /// /// Content-Type header value. /// public string? ContentType { get; set; } /// /// True if status code is 2xx. /// public bool IsSuccess { get; set; } /// /// Error message if the request failed. /// public string? ErrorMessage { get; set; } /// /// Raw response headers for forwarding. /// public Dictionary? RawHeaders { get; set; } /// /// Raw body bytes for binary content. /// public byte[]? RawBody { get; set; } }