Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: expose a version agnostic event emitter #141

Merged
merged 6 commits into from
May 14, 2020

Commits on May 13, 2020

  1. feat!: expose a version agnostic event emitter

    This is a breaking change.
    
    This commit exposes an HTTP based event emitter that simplifes the API.
    To use it, simply import the SDK and start emitting. The default spec
    version is 1.0, but you can use 0.3 by supplying that to the constructor.
    
    By default, CloudEvents are emitted in binary mode, but this can be changed
    by providing the "structured" parameter to the `emit()` function.
    
    This commit also eliminates the version specific emitters and receivers
    from the `v1` and `v03` exports, and eliminates the explicit usage of
    versioned emitters from `lib/bindings/http`.
    
    Signed-off-by: Lance Ball <lball@redhat.com>
    lance committed May 13, 2020
    Configuration menu
    Copy the full SHA
    5883096 View commit details
    Browse the repository at this point in the history
  2. fixup: incorporate comments and add test

    Signed-off-by: Lance Ball <lball@redhat.com>
    lance committed May 13, 2020
    Configuration menu
    Copy the full SHA
    d7d1df5 View commit details
    Browse the repository at this point in the history
  3. docs: add HTTPEmitter examples to README.md

    Signed-off-by: Lance Ball <lball@redhat.com>
    lance committed May 13, 2020
    Configuration menu
    Copy the full SHA
    1c2856e View commit details
    Browse the repository at this point in the history
  4. fixup: make send accept an alternate URL

    Signed-off-by: Lance Ball <lball@redhat.com>
    lance committed May 13, 2020
    Configuration menu
    Copy the full SHA
    85f610d View commit details
    Browse the repository at this point in the history
  5. docs: Update HTTPEmitter examples in the README

    Signed-off-by: Lance Ball <lball@redhat.com>
    lance committed May 13, 2020
    Configuration menu
    Copy the full SHA
    ffed52d View commit details
    Browse the repository at this point in the history
  6. squash: add headers() to the HTTPEmitter function

    Fixes: cloudevents#149
    
    Signed-off-by: Lance Ball <lball@redhat.com>
    lance committed May 13, 2020
    Configuration menu
    Copy the full SHA
    0b27c61 View commit details
    Browse the repository at this point in the history