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
response
HttpResponseMessageresponse
content
stringresponse content
mediaTypeName
stringmedia type of the text content, defaults to text/plain
Returns
- HttpResponseMessage
response