Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Net.​Http.​Headers.​ViaHeaderValue

Assembly: System.Net.Http

Inheritance: object → ViaHeaderValue

Implemented Interfaces

Represents the value of a Via header.

Properties

public string
Comment
Gets the comment field used to identify the software of the recipient proxy or gateway.
public string
ProtocolName
Gets the protocol name of the received protocol.
public string
ProtocolVersion
Gets the protocol version of the received protocol.
public string
ReceivedBy
Gets the host and port that the request or response was received by.

Methods

public bool
Equals​(object obj)
Determines whether the specified <see cref="T:System.Object" /> is equal to the current <see cref="T:System.Net.Http.Headers.ViaHeaderValue" /> object.
Returns <see langword="true" /> if the specified <see cref="T:System.Object" /> is equal to the current object; otherwise, <see langword="false" /> .
obj The object to compare with the current object.
public int
GetHashCode​()
Serves as a hash function for an <see cref="T:System.Net.Http.Headers.ViaHeaderValue" /> object.
Returns A hash code for the current object.
public static ViaHeaderValue
Parse​(string input)
Converts a string to an <see cref="T:System.Net.Http.Headers.ViaHeaderValue" /> instance.
Returns A <see cref="T:System.Net.Http.Headers.ViaHeaderValue" /> instance.
input A string that represents via header value information.
public string
ToString​()
Returns a string that represents the current <see cref="T:System.Net.Http.Headers.ViaHeaderValue" /> object.
Returns A string that represents the current object.
public static bool
TryParse​(string input, ViaHeaderValue& parsedValue)
protected void
Finalize​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object