Explore traits to improve apis of http integration modules
Closed this issue · 2 comments
slinkydeveloper commented
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
pranav-bhatt commented
will start looking into it
slinkydeveloper commented