Updated scanner to infer when it has reached the end of results.
This commit is contained in:
11
JSMR.Infrastructure/Http/HttpStringResponse.cs
Normal file
11
JSMR.Infrastructure/Http/HttpStringResponse.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System.Net;
|
||||
|
||||
namespace JSMR.Infrastructure.Http;
|
||||
|
||||
public sealed class HttpStringResponse
|
||||
{
|
||||
public required HttpStatusCode StatusCode { get; init; }
|
||||
public string? Content { get; init; }
|
||||
|
||||
public bool IsSuccessStatusCode => (int)StatusCode is >= 200 and <= 299;
|
||||
}
|
||||
Reference in New Issue
Block a user