jinrongluo edited a comment on issue #658:
URL: 
https://github.com/apache/incubator-eventmesh/issues/658#issuecomment-1036576090


   For implementing CloudEvents WebHook Spec, the following items required:
   
   **Delivery Notification Request**
   
   1. use HTTPS when invoking the webhook
   2.  HTTP Header uses `Content-Type`
   3. HTTP Header includes `WebHook-Request-Origin`
   
   **Delivery Notification Response**
   1. If delivery is accepted and processed, there is payload in response, Http 
return Code 200 OK / 201 Created, Response HTTP Header uses `Content-Type`
   2. If delivery is accepted and processed and no payload, HTTP return code 
201 Created / 204 No Content
   3. If delivery is accepted and process status is unknown, HTTP return code 
202 Accepted
   4.  If the delivery is retired and the target returns 410 Gone, Eventmesh 
should not send further requests
   5.  If the delivery target not able to process the request due to exceeding 
request rate limit, it should return 429 Too Many Requests. and include 
`Retry-After` header. Eventmesh should use this value for next retry
   6. If the delivery is not accepted due to the notification format is not 
understood. it should return 415 Unsupported Media Type
   
   **Authorization**
   1. Adding `Authorization` header
   
   **Abuse Protection: Validation Request**
   1. include `WebHook-Request-Origin` Http Header
   
   **Abuse Protection: Validation Response**
   1. include `WebHook-Allowed-Origin`


-- 
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]

Reply via email to