Add file results documentation for Minimal APIs and controllers#37257
Conversation
|
Great content. I found a few minor items, with suggestions inline. |
There was a problem hiding this comment.
There is a build issue warning of missing code:
The article references code snippets at "~/../AspNetCore.Docs.Samples/fundamentals/minimal-apis/FileResults/10.x/
This will be resolved when the following PR is merged:
dotnet/AspNetCore.Docs.Samples#312
Co-authored-by: Wade Pickett <wpickett@microsoft.com>
wadepickett
left a comment
There was a problem hiding this comment.
There is a build issue warning of missing code:
The article references code snippets at "~/../AspNetCore.Docs.Samples/fundamentals/minimal-apis/FileResults/10.x/
|
Closing and reopening to force new buld, now that samples on aspnetcore.docs.samples it links to from R dotnet/AspNetCore.Docs.Samples#312 has merged. |
wadepickett
left a comment
There was a problem hiding this comment.
@mikekistler: Approved. Merging..
Adds documentation for file result return values in ASP.NET Core, covering both Minimal APIs and controller-based APIs.
What's included
TypedResults.File/ControllerBase.File()with byte[] and StreamProduces<Stream>for binary,Produces<string>for textenableRangeProcessingfor partial content (206) responsesCode examples reference snippets in dotnet/AspNetCore.Docs.Samples (PR: dotnet/AspNetCore.Docs.Samples#312).
Internal previews