Delen via


HostHeaderValue Struct

Definition

Holds parsed data for the HTTP host header.

public readonly struct HostHeaderValue : IEquatable<Microsoft.AspNetCore.HeaderParsing.HostHeaderValue>
type HostHeaderValue = struct
Public Structure HostHeaderValue
Implements IEquatable(Of HostHeaderValue)
Inheritance
HostHeaderValue
Implements

Constructors

HostHeaderValue(String, Nullable<Int32>)

Initializes a new instance of the HostHeaderValue struct.

Properties

Host

Gets the host address.

Port

Gets the port value.

Methods

Equals(HostHeaderValue)

Determines whether this host header value and a specified host header value are identical.

Equals(Object)

Determines whether the specified object is equal to the current host header value.

GetHashCode()

Gets a hash code for this object.

ToString()

Gets a string representation of this object.

TryParse(String, HostHeaderValue)

Parses a host header value.

Operators

Equality(HostHeaderValue, HostHeaderValue)

Equality operator.

Inequality(HostHeaderValue, HostHeaderValue)

Inequality operator.

Applies to