Fungx commented on issue #4416: URL: https://github.com/apache/eventmesh/issues/4416#issuecomment-1822205549
@pandaapo Hi, here is my design. Since I'm new to EventMesh, please let me know if there is any issues! The HTTP source will be implemented with the native [HttpServer](https://docs.oracle.com/javase/8/docs/jre/api/net/httpserver/spec/com/sun/net/httpserver/HttpServer.html). In `source-config.yml`,we can configure the `path `and `port`. For example, the following configuration creates an API `POST http://127.0.0.1:3000/test`. We can call it in various ways (e.g. curl, GitHub Webhooks, etc.) to send messages. ```yml connectorConfig: connectorName: httpSource path: /test port: 3000 ``` The HTTP Source Connector converts the request body into a CloudEvent. For convenience, the request body should be provided in `json` format. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
