HumanReadableHttpMessageOptions Class
Provides options for serializing HTTP messages.
public class HumanReadableHttpMessageOptions : IEquatable<HumanReadableHttpMessageOptions>Constructors
| Name | Description |
|---|---|
| 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.csInitializes a new instance of the HumanReadableHttpMessageOptions class.
public HumanReadableHttpMessageOptions()HumanReadableHttpMessageOptions(HumanReadableHttpMessageOptions)
HumanReadableHttpMessageOptions.csInitializes a new instance of the HumanReadableHttpMessageOptions class with the values of another instance.
protected HumanReadableHttpMessageOptions(HumanReadableHttpMessageOptions original)Parameters
originalHumanReadableHttpMessageOptions- The instance to copy.
Remarks
The collections are copied, so changing the copy does not change the original instance.
Properties
| Name | Description |
|---|---|
| ExcludedHeaderNames | Gets the set of header names to exclude from serialization. |
| HeaderValueTransformer | Gets the list of header value formatters used to transform header values during serialization. |
| OmitProtocolVersion | When true, the following properties are not serialized: |
ExcludedHeaderNames
HumanReadableHttpMessageOptions.csGets the set of header names to exclude from serialization.
Property value
Remarks
The names apply to the headers of the message and to the headers of its content.
HeaderValueTransformer
HumanReadableHttpMessageOptions.csGets 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.
OmitProtocolVersion
HumanReadableHttpMessageOptions.csWhen true, the following properties are not serialized:
public bool OmitProtocolVersion { get; set; }Property value
Methods
| Name | Description |
|---|---|
| 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.csDetermines whether the specified options are equal to the current options, comparing the content of the collections.
public virtual bool Equals(HumanReadableHttpMessageOptions? other)Parameters
otherHumanReadableHttpMessageOptions?- The options to compare with.
Returns
bool true if the options are equal; otherwise, false.
Equals(object?)
GetHashCode()
HumanReadableHttpMessageOptions.csPrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)No documentation is available.
ToString()
Operators
| Name | Description |
|---|---|
| operator ==(HumanReadableHttpMessageOptions?, HumanReadableHttpMessageOptions?) | |
| operator !=(HumanReadableHttpMessageOptions?, HumanReadableHttpMessageOptions?) |
operator ==(HumanReadableHttpMessageOptions?, HumanReadableHttpMessageOptions?)
public static bool operator ==(HumanReadableHttpMessageOptions? left, HumanReadableHttpMessageOptions? right)No documentation is available.
operator !=(HumanReadableHttpMessageOptions?, HumanReadableHttpMessageOptions?)
public static bool operator !=(HumanReadableHttpMessageOptions? left, HumanReadableHttpMessageOptions? right)No documentation is available.