Skip to content

How to use PostData with an existing Stream? #180

@gpetrou

Description

@gpetrou

We are adding some data in a stream by using Utf8JsonWriter such as in https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/use-utf8jsonwriter and we would like to pass this stream directly to Elasticsearch by using PostData. What is the recommended/efficient way of doing this? I only see that PostData.StreamHandler exists and not PostData.Stream.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions