Class ProtoHttpExchangeResult

Namespace
ProtoTest.Http
Assembly
ProtoTest.Http.dll

One completed exchange: the response the caller now owns, its text body and buffered bytes.

public sealed record ProtoHttpExchangeResult : IEquatable<ProtoHttpExchangeResult>
Inheritance
ProtoHttpExchangeResult
Implements
Inherited Members
Extension Methods

Constructors

ProtoHttpExchangeResult(HttpResponseMessage, string, byte[])

One completed exchange: the response the caller now owns, its text body and buffered bytes.

public ProtoHttpExchangeResult(HttpResponseMessage Response, string Body, byte[] BodyBytes)

Parameters

Response HttpResponseMessage
Body string
BodyBytes byte[]

Properties

Body

public string Body { get; init; }

Property Value

string

BodyBytes

public byte[] BodyBytes { get; init; }

Property Value

byte[]

Response

public HttpResponseMessage Response { get; init; }

Property Value

HttpResponseMessage