HumanReadableHttpMessageOptions Class

Provides options for serializing HTTP messages.

public class HumanReadableHttpMessageOptions : IEquatable<HumanReadableHttpMessageOptions>
Implements

Constructors

NameDescription
HumanReadableHttpMessageOptions()Initializes a new instance of the HumanReadableHttpMessageOptions class.
HumanReadableHttpMessageOptions(HumanReadableHttpMessageOptions)Initializes a new instance of the HumanReadableHttpMessageOptions class with the values of another instance.

HumanReadableHttpMessageOptions overloads

HumanReadableHttpMessageOptions()

HumanReadableHttpMessageOptions.cs

Initializes a new instance of the HumanReadableHttpMessageOptions class.

public HumanReadableHttpMessageOptions()

HumanReadableHttpMessageOptions(HumanReadableHttpMessageOptions)

HumanReadableHttpMessageOptions.cs

Initializes a new instance of the HumanReadableHttpMessageOptions class with the values of another instance.

protected HumanReadableHttpMessageOptions(HumanReadableHttpMessageOptions original)
Parameters
original HumanReadableHttpMessageOptions
The instance to copy.
Remarks

The collections are copied, so changing the copy does not change the original instance.

Properties

NameDescription
ExcludedHeaderNamesGets the set of header names to exclude from serialization.
HeaderValueTransformerGets the list of header value formatters used to transform header values during serialization.
OmitProtocolVersionWhen true, the following properties are not serialized:

Gets the set of header names to exclude from serialization.

public ISet<string> ExcludedHeaderNames { get; }

Property value

ISet<string>

Remarks

The names apply to the headers of the message and to the headers of its content.

Gets the list of header value formatters used to transform header values during serialization.

public IList<HttpHeaderValueFormatter> HeaderValueTransformer { get; }

Property value

IList<HttpHeaderValueFormatter>

Remarks

The formatters apply to the headers of the message and to the headers of its content.

public bool OmitProtocolVersion { get; set; }

Property value

bool

Methods

NameDescription
Equals(HumanReadableHttpMessageOptions?)Determines whether the specified options are equal to the current options, comparing the content of the collections.
Equals(object?)
GetHashCode()
PrintMembers(StringBuilder)
ToString()

Equals overloads

Equals(HumanReadableHttpMessageOptions?)

HumanReadableHttpMessageOptions.cs

Determines whether the specified options are equal to the current options, comparing the content of the collections.

public virtual bool Equals(HumanReadableHttpMessageOptions? other)
Parameters
other HumanReadableHttpMessageOptions?
The options to compare with.
Returns

bool true if the options are equal; otherwise, false.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

public override int GetHashCode()

Returns

int

No documentation is available.

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(HumanReadableHttpMessageOptions?, HumanReadableHttpMessageOptions?)
operator !=(HumanReadableHttpMessageOptions?, HumanReadableHttpMessageOptions?)

operator ==(HumanReadableHttpMessageOptions?, HumanReadableHttpMessageOptions?)

No documentation is available.

operator !=(HumanReadableHttpMessageOptions?, HumanReadableHttpMessageOptions?)

No documentation is available.