Method WithTextContent
- Namespace
- HttpBuildR
- Assembly
- HttpBuildR.Response.dll
WithTextContent(HttpResponseMessage, string, string?)
Modifies the HttpResponseMessage with text StringContent
public static HttpResponseMessage WithTextContent(this HttpResponseMessage response, string content, string? mediaTypeName = null)
Parameters
responseHttpResponseMessageresponse
contentstringresponse content
mediaTypeNamestringmedia type of the text content, defaults to text/plain
Returns
- HttpResponseMessage
response