Skip to content

Add deletes and IDisposable ApiResult#9

Merged
jsneedles merged 1 commit into
mainfrom
deletes
Jul 21, 2026
Merged

Add deletes and IDisposable ApiResult#9
jsneedles merged 1 commit into
mainfrom
deletes

Conversation

@jsneedles

Copy link
Copy Markdown
Member
  • Adds access to delete endpoints for images
  • Tweaks ApiResult<T> to be IDisposable because it has a HttpResponseMessage
  • Clarifies docs

@github-actions

Copy link
Copy Markdown

Test results

141 tests   141 ✅  0s ⏱️
  1 suites    0 💤
  1 files      0 ❌

Results for commit e5f2d18.

@github-actions

Copy link
Copy Markdown

Test results

141 tests   141 ✅  0s ⏱️
  1 suites    0 💤
  1 files      0 ❌

Results for commit e5f2d18.

@github-actions

Copy link
Copy Markdown

Benchmark Results

HtmlCssToImage.Benchmarks.Benchmarks.HmacBenchmark


BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 7763 2.71GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.302
  [Host]  : .NET 10.0.10 (10.0.10, 10.0.1026.32716), X64 RyuJIT x86-64-v3
  .NET 10 : .NET 10.0.10 (10.0.10, 10.0.1026.32716), X64 RyuJIT x86-64-v3

Job=.NET 10  EnvironmentVariables=DOTNET_TieredPGO=0  Runtime=.NET 10.0  
Server=True  MaxIterationCount=20  MaxWarmupIterationCount=5  
MinWarmupIterationCount=2  

Method Mean Error StdDev Ratio Gen0 Allocated Alloc Ratio
Hmac_Standard_Instance 1.992 μs 0.0057 μs 0.0051 μs 1.00 0.0648 696 B 1.00
HCTI_HmacToken_Optimized 1.835 μs 0.0050 μs 0.0044 μs 0.92 0.0134 152 B 0.22

HtmlCssToImage.Benchmarks.Benchmarks.MakeAuthHeaderBenchmark


BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
INTEL XEON PLATINUM 8573C 2.30GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.302
  [Host]  : .NET 10.0.10 (10.0.10, 10.0.1026.32716), X64 RyuJIT x86-64-v4
  .NET 10 : .NET 10.0.10 (10.0.10, 10.0.1026.32716), X64 RyuJIT x86-64-v4

Job=.NET 10  EnvironmentVariables=DOTNET_TieredPGO=0  Runtime=.NET 10.0  
Server=True  MaxIterationCount=20  MaxWarmupIterationCount=5  
MinWarmupIterationCount=2  

Method Mean Error StdDev Ratio Gen0 Allocated Alloc Ratio
AuthHeader_Standard_StringFormat 85.23 ns 0.617 ns 0.578 ns 1.00 0.0370 376 B 1.00
HCTI_AuthHeader_Optimized 63.24 ns 0.326 ns 0.272 ns 0.74 0.0221 168 B 0.45

HtmlCssToImage.Benchmarks.Benchmarks.TemplateListUrlBenchmark


BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 9V74 2.60GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.302
  [Host]  : .NET 10.0.10 (10.0.10, 10.0.1026.32716), X64 RyuJIT x86-64-v4
  .NET 10 : .NET 10.0.10 (10.0.10, 10.0.1026.32716), X64 RyuJIT x86-64-v4

Job=.NET 10  EnvironmentVariables=DOTNET_TieredPGO=0  Runtime=.NET 10.0  
Server=True  MaxIterationCount=20  MaxWarmupIterationCount=5  
MinWarmupIterationCount=2  

Method templateId nextPageStart Mean Error StdDev Ratio Gen0 Allocated Alloc Ratio
Basic ? ? 51.33 ns 0.327 ns 0.290 ns 1.00 0.0250 128 B 1.00
Optimized ? ? 18.66 ns 0.174 ns 0.154 ns 0.36 0.0125 64 B 0.50
Basic t-daa(...)2efe6 [38] ? 67.59 ns 0.176 ns 0.138 ns 1.00 0.0308 312 B 1.00
Optimized t-daa(...)2efe6 [38] ? 20.90 ns 0.052 ns 0.043 ns 0.31 0.0140 144 B 0.46
Basic t-daa(...)2efe6 [38] 1735689600 60.63 ns 0.573 ns 0.536 ns 1.00 0.0291 296 B 1.00
Optimized t-daa(...)2efe6 [38] 1735689600 31.13 ns 0.231 ns 0.205 ns 0.51 0.0185 192 B 0.65

HtmlCssToImage.Benchmarks.Benchmarks.UrlStringBuilderBenchmark


BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 7763 2.45GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.302
  [Host]  : .NET 10.0.10 (10.0.10, 10.0.1026.32716), X64 RyuJIT x86-64-v3
  .NET 10 : .NET 10.0.10 (10.0.10, 10.0.1026.32716), X64 RyuJIT x86-64-v3

Job=.NET 10  EnvironmentVariables=DOTNET_TieredPGO=0  Runtime=.NET 10.0  
Server=True  MaxIterationCount=20  MaxWarmupIterationCount=5  
MinWarmupIterationCount=2  

Method Mean Error StdDev Ratio Gen0 Allocated Alloc Ratio
BuiltInHttpUtility 1,141.4 ns 10.97 ns 9.73 ns 1.00 0.3853 2976 B 1.00
BuiltInUri 1,049.2 ns 13.41 ns 12.55 ns 0.92 0.2728 2760 B 0.93
HctiQueryStringBuilder 773.7 ns 1.42 ns 1.33 ns 0.68 0.1459 744 B 0.25
HctiQueryStringBuilderDirect 725.5 ns 1.20 ns 1.00 ns 0.64 0.1459 744 B 0.25

@jsneedles
jsneedles merged commit 05adb0c into main Jul 21, 2026
9 checks passed
@jsneedles
jsneedles deleted the deletes branch July 21, 2026 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant