sdk-javascript/docs
Lance Ball 6f0b5ea5f1
lib!: refactor HTTP bindings and specifications (#165)
This is a breaking change.

This commit makes a number of changes to the HTTP bindings code in an attempt
to simplify its usage and implementation. From a very high level, this inverts
the existing dependencies.

As an example, consider `lib/bindings/http/receiver_structured_1.js`.
https://github.com/cloudevents/sdk-javascript/blob/v1.0.0/lib/bindings/http/receiver_structured_0_3.js

This class instantiates `lib/bindings/http/receiver_structured.js` and delegates
its function invokations to it. This had the effect of requiring a user to know what
event versions they would be receiving. And for me personally was a little confusing
as a maintainer.

The change introduced here reverses that logic, so that the version agnostic receiver
is what the user instantiates. It instantiates the approrpiate version of a specific
receiever and delegates to it - reversing the dependencies.

I've also moved all of the top level directories related to HTTP versions into
`lib/bindings/http/v1` and `lib/bindings/http/v03` and generally done some rearranging
to make the repository structure cleaner and more organized.

Signed-off-by: Lance Ball <lball@redhat.com>
2020-05-18 11:34:22 -04:00
..
fonts docs: add JSDocs for top level API objects (#140) 2020-05-12 17:27:11 -04:00
icons docs: add JSDocs for top level API objects (#140) 2020-05-12 17:27:11 -04:00
images docs: add JSDocs for top level API objects (#140) 2020-05-12 17:27:11 -04:00
scripts docs: add JSDocs for top level API objects (#140) 2020-05-12 17:27:11 -04:00
styles docs: add JSDocs for top level API objects (#140) 2020-05-12 17:27:11 -04:00
BinaryHTTPEmitter.html lib!: refactor HTTP bindings and specifications (#165) 2020-05-18 11:34:22 -04:00
BinaryHTTPReceiver.html lib!: refactor HTTP bindings and specifications (#165) 2020-05-18 11:34:22 -04:00
CloudEvent.html lib!: refactor HTTP bindings and specifications (#165) 2020-05-18 11:34:22 -04:00
Gemfile docs: add JSDocs for top level API objects (#140) 2020-05-12 17:27:11 -04:00
Gemfile.lock docs: add JSDocs for top level API objects (#140) 2020-05-12 17:27:11 -04:00
HTTPEmitter.html lib!: refactor HTTP bindings and specifications (#165) 2020-05-18 11:34:22 -04:00
HTTPReceiver.html lib!: refactor HTTP bindings and specifications (#165) 2020-05-18 11:34:22 -04:00
StructuredHTTPEmitter.html lib!: refactor HTTP bindings and specifications (#165) 2020-05-18 11:34:22 -04:00
ValidationError.html lib!: refactor HTTP bindings and specifications (#165) 2020-05-18 11:34:22 -04:00
bindings_http_emitter_binary.js.html lib!: refactor HTTP bindings and specifications (#165) 2020-05-18 11:34:22 -04:00
bindings_http_emitter_structured.js.html lib!: refactor HTTP bindings and specifications (#165) 2020-05-18 11:34:22 -04:00
bindings_http_http_emitter.js.html lib!: refactor HTTP bindings and specifications (#165) 2020-05-18 11:34:22 -04:00
bindings_http_http_receiver.js.html lib!: refactor HTTP bindings and specifications (#165) 2020-05-18 11:34:22 -04:00
bindings_http_receiver_binary.js.html lib!: refactor HTTP bindings and specifications (#165) 2020-05-18 11:34:22 -04:00
bindings_http_validation_validation_error.js.html lib!: refactor HTTP bindings and specifications (#165) 2020-05-18 11:34:22 -04:00
cloudevent.js.html lib!: refactor HTTP bindings and specifications (#165) 2020-05-18 11:34:22 -04:00
concepts.md docs: add JSDocs for top level API objects (#140) 2020-05-12 17:27:11 -04:00
formats_json_parser.js.html lib!: refactor HTTP bindings and specifications (#165) 2020-05-18 11:34:22 -04:00
index.html lib!: refactor HTTP bindings and specifications (#165) 2020-05-18 11:34:22 -04:00
validation_error.js.html lib!: refactor HTTP bindings and specifications (#165) 2020-05-18 11:34:22 -04:00