From 0cebac30a9fd564f3983ddd42d82c95fa2ea6b15 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Thu, 7 Nov 2024 10:00:01 -0800 Subject: [PATCH 1/2] add note about other types --- xml/ns-System.Net.Http.xml | 58 ++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 34 deletions(-) diff --git a/xml/ns-System.Net.Http.xml b/xml/ns-System.Net.Http.xml index d44819b20cd..b33b56ce69b 100644 --- a/xml/ns-System.Net.Http.xml +++ b/xml/ns-System.Net.Http.xml @@ -5,51 +5,41 @@ namespace is designed to provide the following: -1. HTTP client components that allow users to consume modern web services over HTTP. +> [!TIP] +> Some of the types in this namespace are built into .NET, and some are provided through NuGet packages. This page only shows the types for the selected moniker (version), and there might be other types in other monikers. -2. HTTP components that can be used by both clients and servers (HTTP headers and messages, for example). This provides a consistent programming model on both the client and the server side for modern web services over HTTP. +The namespace is designed to provide the following components: - The namespace and the related namespace provide the following set of components: +- HTTP client components that allow users to consume modern web services over HTTP. +- HTTP components that can be used by both clients and servers (HTTP headers and messages, for example). This provides a consistent programming model on both the client and the server side for modern web services over HTTP. -1. - the primary class used to send and receive requests over HTTP. +The namespace and the related namespace provide the following set of components: -2. and - HTTP messages as defined in RFC 2616 by the IETF. +- - The primary class used to send and receive requests over HTTP. +- and - HTTP messages as defined in RFC 2616 by the IETF. +- - HTTP headers as defined in RFC 2616 by the IETF. +- - HTTP handlers responsible for producing HTTP response messages. -3. - HTTP headers as defined in RFC 2616 by the IETF. +There are various HTTP message handlers that you can use: -4. - HTTP handlers responsible for producing HTTP response messages. +- - A class used to plug a handler into a handler chain. +- - A simple class to derive from that supports the most common requirements for most applications. +- - A class that operates at the bottom of the handler chain that actually handles the HTTP transport operations. +- - A specialty class that operates at the bottom of the handler chain class that handles HTTP transport operations with options that are specific to the object. - There are various HTTP message handlers that can be used. These include the following. +The contents of an HTTP message corresponds to the entity body defined in RFC 2616. -1. - A class used to plug a handler into a handler chain. +The following classes can be used for HTTP content: -2. - A simple class to derive from that supports the most common requirements for most applications. +- - HTTP content based on a byte array. +- - HTTP content of name/value tuples encoded using application/x-www-form-urlencoded MIME type. +- - HTTP content that gets serialized using the multipart/* content type specification. +- - HTTP content encoded using the multipart/form-data MIME type. +- - HTTP content based on a stream. +- - HTTP content based on a string. -3. - A class that operates at the bottom of the handler chain that actually handles the HTTP transport operations. - -4. - A specialty class that operates at the bottom of the handler chain class that handles HTTP transport operations with options that are specific to the object. - - The contents of an HTTP message corresponds to the entity body defined in RFC 2616. - - A number of classes can be used for HTTP content. These include the following. - -1. - HTTP content based on a byte array. - -2. - HTTP content of name/value tuples encoded using application/x-www-form-urlencoded MIME type. - -3. - HTTP content that gets serialized using the multipart/* content type specification. - -4. - HTTP content encoded using the multipart/form-data MIME type. - -5. - HTTP content based on a stream. - -6. - HTTP content based on a string. - - If an app using the and namespaces intends to download large amounts of data (50 megabytes or more), then the app should stream those downloads and not use the default buffering. If the default buffering is used the client memory usage will get very large, potentially resulting in substantially reduced performance. - - Classes in the and namespaces can be used to develop Windows Store apps or desktop apps. When used in a Windows Store app, classes in the and namespaces are affected by network isolation feature, part of the application security model used by the Windows 8. The appropriate network capabilities must be enabled in the app manifest for a Windows Store app for the system to allow network access by a Windows store app. For more information, see the [Network Isolation for Windows Store Apps](/dotnet/framework/network-programming/network-isolation-for-windows-store-apps). +If your app uses the and namespaces intends to download large amounts of data (50 megabytes or more), then it should stream those downloads and not use the default buffering. If you use the default buffering, the client memory usage will get very large, potentially resulting in substantially reduced performance. ]]> From 979974be69875650e5eed03ce1bbf55e6c6df7ea Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Thu, 7 Nov 2024 10:31:34 -0800 Subject: [PATCH 2/2] tweak wording --- xml/ns-System.Net.Http.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/ns-System.Net.Http.xml b/xml/ns-System.Net.Http.xml index b33b56ce69b..5c381c6f3e5 100644 --- a/xml/ns-System.Net.Http.xml +++ b/xml/ns-System.Net.Http.xml @@ -7,7 +7,7 @@ ## Remarks > [!TIP] -> Some of the types in this namespace are built into .NET, and some are provided through NuGet packages. This page only shows the types for the selected moniker (version), and there might be other types in other monikers. +> Some of the types in this namespace are built into .NET, and some are provided through NuGet packages. This page only shows the types for the selected version. There might be other types available in other versions (for example, the corresponding "package-provided" version). The namespace is designed to provide the following components: