cehelper

package
v0.0.0-...-a7b4c27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequestToEventString

func RequestToEventString(r *http.Request) (string, error)

RequestToEventString takes a http request that is based on a CloudEvent and tries to convert it to a string that contains all the CloudEvent related data. Here is an example of a possible output:

Context Attributes,

specversion: 1.0
type: prefix.testapp1023.order.created.v1
source: /default/sap.kyma/id
subject: prefix.testapp1023.order.created.v1
id: 1.0
time: 2022-07-15T18:40:15.808918Z
datacontenttype: application/json

Data,

"{\"foo\":\"bar\"}"

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL