Skip to content

Update readme to mention usage of HTTP headers #332

@DiscoPYF

Description

@DiscoPYF

The same way we explain that some methods have an argument to specify serialization optons, I think we should also explain how it works for header values.

Example, below ### Serialization Options:

### HTTP Headers

APIs that support specifying HTTP headers have an optional method argument to pass in header values.

For example, to specify a streaming transaction ID when creating a document:


` ```csharp
await adb.Document.PostDocumentAsync(
    "MyCollection",
    new MyClass
    {
        ItemNumber = 123456,
        Description = "Some item"
    },
    new DocumentHeaderProperties()
    {
        TransactionId = "0123456789"
    });
` ```

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