Skip to content

Commit

Permalink
hstream-kafka: add ResponseHeader (#1577)
Browse files Browse the repository at this point in the history
  • Loading branch information
4eUeP authored Aug 25, 2023
1 parent b2d6598 commit e05bc09
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions common/kafka/src/Kafka/Protocol/Message.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module Kafka.Protocol.Message
( RequestHeader (..)
, ResponseHeader (..)
, ApiKey (..)
) where

Expand All @@ -19,3 +20,9 @@ data RequestHeader = RequestHeader
} deriving (Show, Eq, Generic)

instance Serializable RequestHeader

newtype ResponseHeader = ResponseHeader
{ responseCorrelationId :: Int32
} deriving (Show, Eq, Generic)

instance Serializable ResponseHeader

0 comments on commit e05bc09

Please sign in to comment.