Skip to content

Commit a3a5f93

Browse files
authored
add System.Net.Http.WasmEnableStreamingResponse to RuntimeHostConfigurationOption (#50000)
2 parents 5983ab9 + e08a2e5 commit a3a5f93

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.targets

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,11 @@ Copyright (c) .NET Foundation. All rights reserved.
620620
Value="$(UseNativeHttpHandler)"
621621
Trim="true" />
622622

623+
<RuntimeHostConfigurationOption Include="System.Net.Http.WasmEnableStreamingResponse"
624+
Condition="'$(WasmEnableStreamingResponse)' != ''"
625+
Value="$(WasmEnableStreamingResponse)"
626+
Trim="true" />
627+
623628
<RuntimeHostConfigurationOption Include="System.Net.Security.UseManagedNtlm"
624629
Condition="'$(_UseManagedNtlm)' != ''"
625630
Value="$(_UseManagedNtlm)"

test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAProjectWithAllFeatures.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ public void It_publishes_the_project_correctly(string targetFramework, string[]
7979
""System.Linq.Enumerable.IsSizeOptimized"": true,
8080
""System.Net.Http.EnableActivityPropagation"": false,
8181
""System.Net.Http.UseNativeHttpHandler"": true,
82+
""System.Net.Http.WasmEnableStreamingResponse"": true,
8283
""System.Net.Security.UseManagedNtlm"": true,
8384
""System.Net.SocketsHttpHandler.Http3Support"": false,
8485
""System.Reflection.Metadata.MetadataUpdater.IsSupported"": false,

test/TestAssets/TestProjects/KitchenSink/TestApp/TestApp.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
<RetainVMGarbageCollection>false</RetainVMGarbageCollection>
3030
<HttpActivityPropagationSupport>false</HttpActivityPropagationSupport>
3131
<UseNativeHttpHandler>true</UseNativeHttpHandler>
32+
<WasmEnableStreamingResponse>true</WasmEnableStreamingResponse>
3233
<_UseManagedNtlm>true</_UseManagedNtlm>
3334
<Http3Support>false</Http3Support>
3435
<MetadataUpdaterSupport>false</MetadataUpdaterSupport>

0 commit comments

Comments
 (0)