-
Notifications
You must be signed in to change notification settings - Fork 642
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
[Feature] Add HTTP source Connector #4618
Comments
Welcome to the Apache EventMesh community!! Please make sure to include all the relevant context. If you are interested in contributing to our project, please let us know! Want to get closer to the community?
Mailing Lists:
|
Vert.x is a good choice, LGTM. Please log different HTTP status codes for displaying payload delivery status. Additionally, please ensure to set |
Good suggestions! I will take note of them in my implementation. |
Search before asking
Feature Request
According to eventmesh-connectors, the Http connector is still not implemented. I would like to work on the Http source connector and here are some ideas.
In a nutshell, the goal is to implement a http source that receives http requests, converts them into cloud events, and then responds to the client.
Conversion
According to http-protocol-binding, and java-sdk only supports
binary
andstructured
, this time we also only support these two modes.Http Server
The source connector uses Vert.x, a lightweight http server, to handle requests. Because the cloudevents java-sdk has good support for Vert.x, and Vert.x is also an efficient and stable http server.
The Vert.x http server is initialised in the connector and waits to handle http requests.
Here are two valid examples for each of
binary
andstructured
.Configuration
The URI can be configured in
source-config.yml
. For example, the following configuration creates an APIPOST http://127.0.0.1:3755/test
. We can call it in various ways (e.g. curl, GitHub Webhooks, etc.) to send messages.@pandaapo Hi, what do you think?
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: