Document the parse method

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2019-06-11 20:47:06 -03:00
parent 141cb04516
commit 441613b103
1 changed files with 7 additions and 3 deletions

View File

@ -175,8 +175,7 @@ var config = {
};
// The binding instance
var binding = Cloudevent
.bindings["http-structured0.2"](config);
var binding = new Cloudevent.bindings["http-structured0.2"](config);
binding.receive()
.then(cloudevent => {
@ -318,10 +317,15 @@ Binding(config)
Binding.emit(cloudevent)
/*
* Checks if some Object and a Map of attributes
* Checks if some Object and a Map of headers
* follows the binding definition. Throw an error if did not follow
*/
Binding.check(Object, Map)
/*
* Checks and parse the Binary as Cloudevent
*/
Cloudevent Binding.parse(Object, Map)
```
#### Receiver Binding