Skip to content

Commit

Permalink
Patch 1 (#650)
Browse files Browse the repository at this point in the history
* docstring for header support in Producer.send

closes #566

* news fragment
  • Loading branch information
andreportela committed Oct 16, 2020
1 parent 84e2a98 commit 5622e9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES/566.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added a docstring for Kafka header support in Producer.send().
3 changes: 3 additions & 0 deletions aiokafka/producer/producer.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,9 @@ async def send(
key_serializer.
timestamp_ms (int, optional): epoch milliseconds (from Jan 1 1970
UTC) to use as the message timestamp. Defaults to current time.
headers (optional): Kafka headers to be included in the message using
the format [("key", b"value")]. Iterable of tuples where key is a
normal string and value is a byte string.
Returns:
asyncio.Future: object that will be set when message is
Expand Down

0 comments on commit 5622e9b

Please sign in to comment.