Class HeaderFieldInfo
- Namespace
- Fluxzy
- Assembly
- Fluxzy.Core.dll
Represent a header field
[MessagePackObject(false)]
public class HeaderFieldInfo
- Inheritance
-
HeaderFieldInfo
- Inherited Members
Constructors
HeaderFieldInfo(HeaderField, bool)
public HeaderFieldInfo(HeaderField original, bool doNotForwardConnectionHeader = false)
Parameters
original
HeaderFielddoNotForwardConnectionHeader
bool
HeaderFieldInfo(ReadOnlyMemory<char>, ReadOnlyMemory<char>, bool)
[JsonConstructor]
[SerializationConstructor]
public HeaderFieldInfo(ReadOnlyMemory<char> name, ReadOnlyMemory<char> value, bool forwarded)
Parameters
name
ReadOnlyMemory<char>value
ReadOnlyMemory<char>forwarded
bool
HeaderFieldInfo(string, string)
public HeaderFieldInfo(string name, string value)
Parameters
Properties
Forwarded
True if the header should be forwarded to the client or the server, otherwise the header will be ignored by fluxzy (typically for connection related headers)
[Key(2)]
public bool Forwarded { get; set; }
Property Value
Name
Header name
[Key(0)]
public ReadOnlyMemory<char> Name { get; set; }
Property Value
Value
Header value
[Key(1)]
public ReadOnlyMemory<char> Value { get; set; }
Property Value
Methods
Equals(HeaderFieldInfo)
protected bool Equals(HeaderFieldInfo other)
Parameters
other
HeaderFieldInfo
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Operators
implicit operator HeaderFieldInfo(HeaderField)
Convenience method to convert this object to HeaderField
public static implicit operator HeaderFieldInfo(HeaderField d)