Adding nullable type functionality for HttpRequest Context Type (#32203)
* Added "?" to make type string nullable for ContentType. Updated PublicAPI.Unshipped.txt to reflect change to nullable type. * Added *REMOVED* counter part to addition as requested. * Added "?" to update DefaultHTTPRequest ContentType property to allow nullable. * Added null value marker for EscapedValueOrEmptyMarker function used by ToString function. * Updated contentType paramater to include null values in TryGetEncodingForMediaType function. * Implemented TryParse on content type. If false, returns false for TryEncodingForMediaType. If true, continues through Encoding process.
显示
- src/Hosting/Hosting/src/Internal/HostingRequestStartingLog.cs 1 个添加, 1 个删除...Hosting/Hosting/src/Internal/HostingRequestStartingLog.cs
- src/Http/Http.Abstractions/src/HttpRequest.cs 1 个添加, 1 个删除src/Http/Http.Abstractions/src/HttpRequest.cs
- src/Http/Http.Abstractions/src/PublicAPI.Unshipped.txt 2 个添加, 0 个删除src/Http/Http.Abstractions/src/PublicAPI.Unshipped.txt
- src/Http/Http/src/Internal/DefaultHttpRequest.cs 1 个添加, 1 个删除src/Http/Http/src/Internal/DefaultHttpRequest.cs
- src/Middleware/HttpLogging/src/MediaTypeHelpers.cs 5 个添加, 2 个删除src/Middleware/HttpLogging/src/MediaTypeHelpers.cs
加载中
想要评论请 注册 或 登录