HostHeaderValue Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |