diff --git a/src/RestSharp/Response/RestResponse.cs b/src/RestSharp/Response/RestResponse.cs index b1b87bb10..859db23a7 100644 --- a/src/RestSharp/Response/RestResponse.cs +++ b/src/RestSharp/Response/RestResponse.cs @@ -30,7 +30,7 @@ public class RestResponse : RestResponse { /// /// Deserialized entity data /// - public T? Data { get; internal set; } + public T? Data { get; set; } public static RestResponse FromResponse(RestResponse response) => new() { diff --git a/src/RestSharp/Response/RestResponseBase.cs b/src/RestSharp/Response/RestResponseBase.cs index bb00b343b..cba2eb1f8 100644 --- a/src/RestSharp/Response/RestResponseBase.cs +++ b/src/RestSharp/Response/RestResponseBase.cs @@ -38,67 +38,67 @@ public abstract class RestResponseBase { /// /// MIME content type of response /// - public string? ContentType { get; init; } + public string? ContentType { get; set; } /// /// Length in bytes of the response content /// - public long? ContentLength { get; init; } + public long? ContentLength { get; set; } /// /// Encoding of the response content /// - public ICollection ContentEncoding { get; init; } = new List(); + public ICollection ContentEncoding { get; set; } = new List(); /// /// String representation of response content /// - public string? Content { get; init; } + public string? Content { get; set; } /// /// HTTP response status code /// - public HttpStatusCode StatusCode { get; init; } + public HttpStatusCode StatusCode { get; set; } /// /// Whether or not the response status code indicates success /// - public bool IsSuccessful { get; init; } + public bool IsSuccessful { get; set; } /// /// Description of HTTP status returned /// - public string? StatusDescription { get; init; } + public string? StatusDescription { get; set; } /// /// Response content /// - public byte[]? RawBytes { get; init; } + public byte[]? RawBytes { get; set; } /// /// The URL that actually responded to the content (different from request if redirected) /// - public Uri? ResponseUri { get; init; } + public Uri? ResponseUri { get; set; } /// /// HttpWebResponse.Server /// - public string? Server { get; init; } + public string? Server { get; set; } /// /// Cookies returned by server with the response /// - public CookieCollection? Cookies { get; init; } + public CookieCollection? Cookies { get; set; } /// /// Response headers returned by server with the response /// - public IReadOnlyCollection? Headers { get; init; } + public IReadOnlyCollection? Headers { get; set; } /// /// Content headers returned by server with the response /// - public IReadOnlyCollection? ContentHeaders { get; init; } + public IReadOnlyCollection? ContentHeaders { get; set; } /// /// Status of the request. Will return Error for transport errors.