Exporting the HTTPUnmarshaller
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
ca6c7942c0
commit
d399e5abc3
|
@ -28,6 +28,10 @@ describe("The SDK Requirements", () => {
|
||||||
expect(v02).to.have.property("BinaryHTTPReceiver");
|
expect(v02).to.have.property("BinaryHTTPReceiver");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("should exports 'HTTPUnmarshaller'", () => {
|
||||||
|
expect(v02).to.have.property("HTTPUnmarshaller");
|
||||||
|
});
|
||||||
|
|
||||||
it("should exports 'event'", () => {
|
it("should exports 'event'", () => {
|
||||||
expect(v02).to.have.property("event");
|
expect(v02).to.have.property("event");
|
||||||
});
|
});
|
||||||
|
@ -58,6 +62,10 @@ describe("The SDK Requirements", () => {
|
||||||
expect(v03).to.have.property("BinaryHTTPReceiver");
|
expect(v03).to.have.property("BinaryHTTPReceiver");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("should exports 'HTTPUnmarshaller'", () => {
|
||||||
|
expect(v03).to.have.property("HTTPUnmarshaller");
|
||||||
|
});
|
||||||
|
|
||||||
it("should exports 'event'", () => {
|
it("should exports 'event'", () => {
|
||||||
expect(v03).to.have.property("event");
|
expect(v03).to.have.property("event");
|
||||||
});
|
});
|
||||||
|
|
|
@ -8,6 +8,8 @@ const StructuredHTTPReceiver =
|
||||||
const BinaryHTTPReceiver =
|
const BinaryHTTPReceiver =
|
||||||
require("../lib/bindings/http/receiver_binary_0_2.js");
|
require("../lib/bindings/http/receiver_binary_0_2.js");
|
||||||
|
|
||||||
|
const HTTPUnmarshaller = require("../lib/bindings/http/unmarshaller_0_3.js");
|
||||||
|
|
||||||
function event() {
|
function event() {
|
||||||
return new Cloudevent(Spec);
|
return new Cloudevent(Spec);
|
||||||
}
|
}
|
||||||
|
@ -18,5 +20,6 @@ module.exports = {
|
||||||
StructuredHTTPReceiver,
|
StructuredHTTPReceiver,
|
||||||
BinaryHTTPEmitter : HTTPBinary02,
|
BinaryHTTPEmitter : HTTPBinary02,
|
||||||
BinaryHTTPReceiver,
|
BinaryHTTPReceiver,
|
||||||
|
HTTPUnmarshaller,
|
||||||
event
|
event
|
||||||
};
|
};
|
||||||
|
|
|
@ -10,6 +10,8 @@ const StructuredHTTPReceiver =
|
||||||
const BinaryHTTPReceiver =
|
const BinaryHTTPReceiver =
|
||||||
require("../lib/bindings/http/receiver_binary_0_3.js");
|
require("../lib/bindings/http/receiver_binary_0_3.js");
|
||||||
|
|
||||||
|
const HTTPUnmarshaller = require("../lib/bindings/http/unmarshaller_0_3.js");
|
||||||
|
|
||||||
function event() {
|
function event() {
|
||||||
return new Cloudevent(Spec);
|
return new Cloudevent(Spec);
|
||||||
}
|
}
|
||||||
|
@ -20,5 +22,6 @@ module.exports = {
|
||||||
StructuredHTTPReceiver,
|
StructuredHTTPReceiver,
|
||||||
BinaryHTTPEmitter,
|
BinaryHTTPEmitter,
|
||||||
BinaryHTTPReceiver,
|
BinaryHTTPReceiver,
|
||||||
|
HTTPUnmarshaller,
|
||||||
event
|
event
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue