rd_kafka_produce_batch does not allow passing headers as well so I left ProduceRecord as is. Instead I've added a separate produceWithHeaders to cover the case when singular message is produced with headers.
Consumer record now has crHeaders field which is a breaking change, but I don't really see how this can be done differently without duplicating the existing api.
Closes #58
Implementation details
ProduceRecord
as is. Instead I've added a separateproduceWithHeaders
to cover the case when singular message is produced with headers.crHeaders
field which is a breaking change, but I don't really see how this can be done differently without duplicating the existing api.