mirror of https://github.com/dapr/docs.git
Document use of Content-Type as datacontenttype in pubsub. (#999)
This commit is contained in:
parent
7c1c70d89c
commit
7bc51e81d4
|
|
@ -308,7 +308,7 @@ Invoke-RestMethod -Method Post -ContentType 'application/json' -Body '{"status":
|
||||||
|
|
||||||
{{< /tabs >}}
|
{{< /tabs >}}
|
||||||
|
|
||||||
Dapr automatically wraps the user payload in a Cloud Events v1.0 compliant envelope.
|
Dapr automatically wraps the user payload in a Cloud Events v1.0 compliant envelope, using `Content-Type` header value for `datacontenttype` attribute.
|
||||||
|
|
||||||
## Step 4: ACK-ing a message
|
## Step 4: ACK-ing a message
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ When multiple instances of the same application ID subscribe to a topic, Dapr wi
|
||||||
|
|
||||||
### Cloud events
|
### Cloud events
|
||||||
|
|
||||||
Dapr follows the [CloudEvents 1.0 Spec](https://github.com/cloudevents/spec/tree/v1.0) and wraps any payload sent to a topic inside a Cloud Events envelope.
|
Dapr follows the [CloudEvents 1.0 Spec](https://github.com/cloudevents/spec/tree/v1.0) and wraps any payload sent to a topic inside a Cloud Events envelope, using `Content-Type` header value for `datacontenttype` attribute.
|
||||||
|
|
||||||
The following fields from the Cloud Events spec are implemented with Dapr:
|
The following fields from the Cloud Events spec are implemented with Dapr:
|
||||||
- `id`
|
- `id`
|
||||||
|
|
@ -65,4 +65,4 @@ Limit which topics applications are able to publish/subscibe to in order to limi
|
||||||
## Next steps
|
## Next steps
|
||||||
|
|
||||||
- Read the How-To guide on [publishing and subscribing]({{< ref howto-publish-subscribe.md >}})
|
- Read the How-To guide on [publishing and subscribing]({{< ref howto-publish-subscribe.md >}})
|
||||||
- Learn about [Pub/Sub scopes]({{< ref pubsub-scopes.md >}})
|
- Learn about [Pub/Sub scopes]({{< ref pubsub-scopes.md >}})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue