ExpectHeader class final

A class representing the HTTP Expect header.

This class manages the directive for the Expect header, such as 100-continue. It provides functionality to parse and generate Expect header values.

Constructors

ExpectHeader.parse(String value)
Parses a value and returns the corresponding ExpectHeader instance. If the value does not match any predefined types, it returns a custom instance.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The string representation of the expectation directive.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Constants

codec → const HeaderCodec<ExpectHeader>
continue100 → const ExpectHeader