Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is there both a System.Net.Http and System.Web.Http namespace?

Tags:

c#

.net

asp.net

Just a simple question as I'm studying the various class libraries available in .NET. I noticed that there's a System.Net.Http namespace and a System.Web.Http namespace.

  • What purpose(s) do both namespaces serve?
  • What were the motivations for creating two seemingly ambiguous namespaces?
  • Is there any history I should know about or is one of the namespaces "deprecated"?

System.Net.Http, System.Web.Http

like image 877
Alexander Trauzzi Avatar asked Feb 10 '14 00:02

Alexander Trauzzi


People also ask

What is System web namespace?

System. Web namespace is an important base for Web Form user interface and web services. Use of Built-in Objects like Request and Response are very common and widely used. We directly write them without creating objects as they are built-in objects.

What is the use of system net HTTP?

The System. Net. Http namespace is designed to provide the following: HTTP client components that allow users to consume modern web services over HTTP.

What is .NET system web?

Defines the methods, properties, and events that are common to all application objects in an ASP.NET application. This class is the base class for applications that are defined by the user in the Global.


1 Answers

System.Net.Http is for client-side HTTP programming. System.Web.Http is for server-side HTTP programming.

like image 125
Max Toro Avatar answered Sep 21 '22 17:09

Max Toro