Table of Contents

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 HeaderField
doNotForwardConnectionHeader 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

name string
value string

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

bool

Name

Header name

[Key(0)]
public ReadOnlyMemory<char> Name { get; set; }

Property Value

ReadOnlyMemory<char>

Value

Header value

[Key(1)]
public ReadOnlyMemory<char> Value { get; set; }

Property Value

ReadOnlyMemory<char>

Methods

Equals(HeaderFieldInfo)

protected bool Equals(HeaderFieldInfo other)

Parameters

other HeaderFieldInfo

Returns

bool

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

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)

Parameters

d HeaderField

Returns

HeaderFieldInfo