mtkachenko mtkachenko - 1 month ago 7
C# Question

What purposes should I use class StringContent for?

There is StringContent class in System.Net.Http namespace. What purposes should I use class StringContent for?

Answer

It provides HTTP content based on a string.

Example:

Adding the content on HTTPResponseMessage Object

response.Content = new StringContent("Place response text here");
Comments