Struct Header
Specifies a direction and header value.
public readonly record struct Header : IEquatable<Header>
- Implements
- Inherited Members
Constructors
Header(Direction, short)
Specifies a direction and header value.
public Header(Direction Direction, short Value)
Parameters
Fields
All
Represents a header that matches all messages.
public static readonly Header All
Field Value
Remarks
This can be used to intercept all packets with Intercept(IInterceptor, ReadOnlySpan<Header>, InterceptCallback, ClientType).
Unknown
Represents an unknown header.
public static readonly Header Unknown
Field Value
Properties
Direction
public Direction Direction { get; init; }
Property Value
Value
public short Value { get; init; }
Property Value
Operators
implicit operator Header((Direction direction, short value))
public static implicit operator Header((Direction direction, short value) x)
Parameters
Returns
implicit operator ReadOnlySpan<Header>(in Header)
public static implicit operator ReadOnlySpan<Header>(in Header header)
Parameters
header
Header