Commit Graph

7 Commits

Author SHA1 Message Date
Lance Ball d9e9ae6bdc
fix: make application/json the default content type in binary mode (#118)
The Knative Kafka event source does not include a `Content-Type` header when
sending binary events. The CE HTTP binding specification doesn't address how
a receiver should handle this situation.

This commit makes `application/json` the default.

Fixes: https://github.com/cloudevents/sdk-javascript/issues/117
Ref: https://github.com/cloudevents/spec/issues/614

Signed-off-by: Lance Ball <lball@redhat.com>
2020-05-05 18:02:39 -04:00
Grant Timmerman 05ecbdea4f
feat: use CloudEvents not cloudevents everywhere (#101)
Signed-off-by: Grant Timmerman <timmerman+devrel@google.com>
2020-04-30 16:14:13 -07:00
Lance Ball 3f238a0124
src: add eslint configuration and npm script
Automatically fixed > 2000 issues. The remaining 200+ issues need
to be fixed by hand. Additionally, all strings are double quotes
which is not typically standard and I wonder about fixing that too.

Signed-off-by: Lance Ball <lball@redhat.com>
2020-04-22 10:15:05 -04:00
Daniel Bevenius df85189a64 Use const instead of var where applicable
Signed-off-by: Daniel Bevenius <daniel.bevenius@gmail.com>
2020-04-20 09:54:25 +02:00
Fabio José fad43ecb4e New: check() decorator, parsersByEncoding to work with datacontentencoding
Signed-off-by: Fabio José <fabiojose@gmail.com>
2019-08-06 11:18:45 -03:00
Fabio José 7a4473b11a Remove the 0.2 references
Signed-off-by: Fabio José <fabiojose@gmail.com>
2019-08-04 13:27:25 -03:00
Fabio José ef6db28464 A generic binary http receiver for reusable purposes
Signed-off-by: Fabio José <fabiojose@gmail.com>
2019-07-29 16:33:48 -03:00