cloudevents/sdk-rust

Explore traits to improve apis of http integration modules

Closed this issue · 2 comments

Right now the APIs are:

event_to_request(input, client.post(&url))
  .unwrap()
  .send()

I think it would be nicer to have something like:

client.post(&url)
  .event(input).unwrap() // This still need to fail somehow
  .send()

This applies both to request and responses for both actix-web and reqwest modules

will start looking into it

Done by #57 and #58