You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add example to modify headers in Minimal APIs (#34666)
* Add documentation for modifying response headers in Minimal APIs
* Add example for Problem result in Minimal APIs
* Update ms.date in minimal-apis.md
* Update ms.date in responses.md
---------
Co-authored-by: Wade Pickett <[email protected]>
Applications can control responses by implementing a custom <xref:Microsoft.AspNetCore.Http.IResult> type. The following code is an example of an HTML result type:
@@ -195,6 +199,22 @@ Here's an example of a filter that uses one of these interfaces:
195
199
196
200
For more information, see [Filters in Minimal API apps](xref:fundamentals/minimal-apis/min-api-filters) and [IResult implementation types](xref:fundamentals/minimal-apis/test-min-api#iresult-implementation-types).
197
201
202
+
## Modifying Headers
203
+
204
+
Use the `HttpResponse` object to modify response headers:
Applications can control responses by implementing a custom <xref:Microsoft.AspNetCore.Http.IResult> type. The following code is an example of an HTML result type:
0 commit comments