Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add direct download option when serving static files (#1729)
* enable download for app.Static wording * Add unit test. Co-authored-by: Muhammed Efe Çetin <efectn@protonmail.com>
- Loading branch information
Showing
3 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
af10fab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
2
.Benchmark_App_ETag_Weak
13923
ns/op 1076 B/op 4 allocs/op6497
ns/op 1076 B/op 4 allocs/op2.14
Benchmark_Ctx_Accepts
511
ns/op 0 B/op 0 allocs/op163
ns/op 0 B/op 0 allocs/op3.13
Benchmark_SlashRecognition/indexBytes
10.8
ns/op 0 B/op 0 allocs/op3.63
ns/op 0 B/op 0 allocs/op2.98
Benchmark_Router_WithCompression
637
ns/op 0 B/op 0 allocs/op211
ns/op 0 B/op 0 allocs/op3.02
Benchmark_Router_Handler_CaseSensitive
531
ns/op 0 B/op 0 allocs/op171
ns/op 0 B/op 0 allocs/op3.11
Benchmark_Middleware_BasicAuth
862
ns/op 48 B/op 3 allocs/op412
ns/op 48 B/op 3 allocs/op2.09
Benchmark_Limiter
818
ns/op 8 B/op 1 allocs/op351
ns/op 8 B/op 1 allocs/op2.33
Benchmark_UUID/default
1152
ns/op 208 B/op 6 allocs/op491
ns/op 208 B/op 6 allocs/op2.35
This comment was automatically generated by workflow using github-action-benchmark.