docs: Update references of specific versions to use Latest Supported. (#211)
* docs: Update references of specific versions to use Latest Supported. fixes #160 Signed-off-by: Lucas Holmquist <lholmqui@redhat.com>
This commit is contained in:
parent
b3d9dd2d2a
commit
ed1d3286fa
|
@ -54,9 +54,9 @@ binary or structured format, and determine what version of the CloudEvents
|
||||||
specification you want to send the event as.
|
specification you want to send the event as.
|
||||||
|
|
||||||
By default, the `HTTPEmitter` will emit events over HTTP POST using the
|
By default, the `HTTPEmitter` will emit events over HTTP POST using the
|
||||||
1.0 specification, in binary mode. You can emit 0.3 events by providing
|
latest supported specification version, in binary mode. You can emit version specific events by providing
|
||||||
the specication version in the constructor to `HTTPEmitter`. To send
|
the specication version in the constructor to `HTTPEmitter`. To send
|
||||||
structured events, add that string as a parameter to `emitter.sent()`.
|
structured events, add that string as a parameter to `emitter.send()`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const { CloudEvent, HTTPEmitter } = require("cloudevents-sdk");
|
const { CloudEvent, HTTPEmitter } = require("cloudevents-sdk");
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
npm start
|
npm start
|
||||||
```
|
```
|
||||||
|
|
||||||
## Spec v1.0
|
## Latest Supported Spec (v1.0)
|
||||||
|
|
||||||
|
|
||||||
__A Structured One__
|
__A Structured One__
|
||||||
|
|
Loading…
Reference in New Issue