* refactor(samples): update to `cloudevents` 2.0.0a1 and modernize usage
- Migrated to `cloudevents` 2.0.0a1 including updated imports and APIs.
- Replaced deprecated `from_http`, `to_binary`, and `to_structured` with the new `from_http_event`, `to_binary_event`, and `to_structured_event`.
- Added required `id` and `specversion` attributes to Cloudevents examples.
- Updated README and client script for consistency and improved usability.
Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
* refactor(samples): migrate to `cloudevents` 2.0.0a1 and enhance examples
- Updated server, client, and test code to use the updated `cloudevents` 2.0.0a1 API with `from_http_event`, `to_binary_event`, and `to_structured_event`.
- Included required `id` and `specversion` attributes in Cloudevent examples.
- Synchronized README and scripts for better clarity and usability.
- Pinned `cloudevents==2.0.0a1` in `requirements.txt`.
Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
* chore(samples): bump `cloudevents` to 2.0.0a2 in requirements
Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
* chore(cloudevents): bump version to 2.0.0-alpha3
Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
* chore(samples): update `cloudevents` to 2.0.0a3 in requirements
Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
---------
Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>