<PackageReference Include="Azure.Core" Version="1.47.3" />

MemoryResponse

A Response that can be constructed in memory without being tied to a live request.
public MemoryResponse()

public void AddHeader(string name, string value)

Add a response header value.

public void SetContent(byte[] content)

Set the Response ContentStream.

public void SetContent(string content)

Set the Response ContentStream.

public void SetHeader(string name, string value)

Set the value of a response header (and overwrite any existing values).

public void SetHeader(string name, IEnumerable<string> values)

Set the values of a response header (and overwrite any existing values).

public void SetReasonPhrase(string reasonPhrase)

Set the Response ReasonPhrase.

public void SetStatus(int status)

Set the Response Status.