Reduce the size of HttpRequestMessage and HttpRequestHeaders (#81251)
authorMiha Zupan <mihazupan.zupan1@gmail.com>
Fri, 27 Jan 2023 23:04:39 +0000 (15:04 -0800)
committerGitHub <noreply@github.com>
Fri, 27 Jan 2023 23:04:39 +0000 (15:04 -0800)
commit59719477cf1c8974fcb14323649ea89ea3e55ef9
tree5097928d649783aefe133afeaa669a72ea49427c
parentd8d88dad7ac051e337d0ebc9a7947a9ad907bdf9
Reduce the size of HttpRequestMessage and HttpRequestHeaders (#81251)

* Reduce the size of HttpRequestMessage and HttpRequestHeaders

* Assert that the request message can't transition from Disposed to non-Disposed
src/libraries/System.Net.Http/src/System/Net/Http/Headers/HttpRequestHeaders.cs
src/libraries/System.Net.Http/src/System/Net/Http/HttpRequestMessage.cs
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http2Connection.cs
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs