HttpExpectationHeaderValue HttpExpectationHeaderValue HttpExpectationHeaderValue HttpExpectationHeaderValue HttpExpectationHeaderValue Class

Definition

Represents a token for a particular server behavior required by the client that is used in the Expect HTTP header on an HTTP request.

public : sealed class HttpExpectationHeaderValue : IStringable
struct winrt::Windows::Web::Http::Headers::HttpExpectationHeaderValue : IStringable
public sealed class HttpExpectationHeaderValue : IStringable
Public NotInheritable Class HttpExpectationHeaderValue Implements IStringable
var httpExpectationHeaderValue = new httpExpectationHeaderValue(name, value);
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

The HttpExpectationHeaderValue class is a token that represents a particular server behavior that is required by the client. The HttpExpectationHeaderValue is used in the Expect HTTP header on an HTTP request.

For example, 100-continue is a server behavior that the client might depend on and set using the HttpExpectationHeaderValue class.

The Expect property on the HttpRequestHeaderCollection returns an HttpExpectationHeaderValueCollection that contains HttpExpectationHeaderValue objects.

Constructors

HttpExpectationHeaderValue(String) HttpExpectationHeaderValue(String) HttpExpectationHeaderValue(String) HttpExpectationHeaderValue(String) HttpExpectationHeaderValue(String)

Initializes a new instance of the HttpExpectationHeaderValue class with a name.

HttpExpectationHeaderValue(String, String) HttpExpectationHeaderValue(String, String) HttpExpectationHeaderValue(String, String) HttpExpectationHeaderValue(String, String) HttpExpectationHeaderValue(String, String)

Initializes a new instance of the HttpExpectationHeaderValue class with a name and value for the name.

Properties

Name Name Name Name Name

Gets or sets a token that represents a name for a server behavior used in the Expect HTTP header.

Parameters Parameters Parameters Parameters Parameters

Gets a set of parameters for a server behavior included in the Expect HTTP header.

Value Value Value Value Value

Gets or sets a value for a server behavior used in the Expect HTTP header.

Methods

Parse(String) Parse(String) Parse(String) Parse(String) Parse(String)

Converts a string to an HttpExpectationHeaderValue instance.

ToString() ToString() ToString() ToString() ToString()

Returns a string that represents the current HttpExpectationHeaderValue object.

TryParse(String, HttpExpectationHeaderValue) TryParse(String, HttpExpectationHeaderValue) TryParse(String, HttpExpectationHeaderValue) TryParse(String, HttpExpectationHeaderValue) TryParse(String, HttpExpectationHeaderValue)

Determines whether a string is valid HttpCredentialsHeaderValue information.

See also