Represents a generic header value segment within an HTTP header. This class is typically used internally by the .NET Framework to parse and represent complex header values that consist of multiple segments and parameters.
System.Net.Http.dll
Returns a string representation of the header value segment.
Returns a string representation of the header value segment using the specified format provider.
Gets the name of the header value segment.
Gets the collection of parameters associated with this header value segment.
Gets the value of the header value segment.
This class is primarily used by the HttpContentHeaders and HttpResponseHeaders collections when parsing complex header values such as those found in `Accept`, `Content-Type`, or `Set-Cookie` headers.
For example, a header like application/json; charset=utf-8; version=1.0 would be parsed into segments. `application/json` might be the primary value, and `charset=utf-8` and `version=1.0` would be its associated parameters.
While you typically don't instantiate GenericHeaderValueSegment directly, it's useful to understand how it's used internally.