userver: userver/kafka/headers.hpp File Reference
Loading...
Searching...
No Matches
headers.hpp File Reference

Detailed Description

Kafka message header views and readers.

Definition in file headers.hpp.

Go to the source code of this file.

#include <cstddef>
#include <iterator>
#include <string_view>
#include <userver/utils/span.hpp>
#include <userver/utils/zstring_view.hpp>
+ This graph shows which files directly or indirectly include this file:

Classes

struct  kafka::HeaderView
 Wrapper for Kafka header. Header name must be valid null-terminated string. Header value is treated as a binary data by Kafka. More...
 
class  kafka::OwningHeader
 Owning wrapper for Kafka header. More...
 
class  kafka::HeadersIterator
 Header views iterator. More...
 
class  kafka::HeadersReader
 Class to read all message's headers. More...
 

Typedefs

using kafka::HeaderViews = utils::span<const HeaderView>
 Ordered list of HeaderView. Duplicated keys are supported. Keys order is preserved.
 

Functions

bool kafka::operator== (const HeaderView &lhs, const OwningHeader &rhs)
 
bool kafka::operator== (const OwningHeader &lhs, const HeaderView &rhs)
 

Typedef Documentation

◆ HeaderViews

using kafka::HeaderViews = utils::span<const HeaderView>

Ordered list of HeaderView. Duplicated keys are supported. Keys order is preserved.

Definition at line 51 of file headers.hpp.