Class Header
Represents a kafka message header.
Implements
Inherited Members
Namespace: Confluent.Kafka
Assembly: Confluent.Kafka.dll
Syntax
public class Header : IHeader
  Remarks
Message headers are supported by v0.11 brokers and above.
Constructors
Header(string, byte[])
Create a new Header instance.
Declaration
public Header(string key, byte[] value)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | key | The header key.  | 
      
| byte[] | value | The header value (may be null).  | 
      
Properties
Key
The header key.
Declaration
public string Key { get; }
  Property Value
| Type | Description | 
|---|---|
| string | 
Methods
GetValueBytes()
Get the serialized header value data.
Declaration
public byte[] GetValueBytes()
  Returns
| Type | Description | 
|---|---|
| byte[] |