Table of Contents

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 HttpResponseMessage

response

content string

response content

mediaTypeName string

media type of the text content, defaults to text/plain

Returns

HttpResponseMessage

response