helperdiscord / petitio

An HTTP/S library designed to be simple, fast, and type-strong.
https://helperdiscord.github.io/petitio/
MIT License
44 stars 6 forks source link

refactor: overhaul undici interface #19

Open Nytelife26 opened 3 years ago

Nytelife26 commented 3 years ago

This would solve...

The implementation should look like...

Typing will not be difficult as Agent, Pool and Client all implement Dispatcher.

I have also considered...

N/A.

Additional context

N/A.

wonderlandpark commented 3 years ago

I think we need a signal too. (for request aborting)

tbnritzdoge commented 3 years ago

I think we need a signal too. (for request aborting)

Yeah, we can definitely add that as well.

Nytelife26 commented 3 years ago

@wonderlandpark Can you file that as a separate issue please, under a feature request? :)

wonderlandpark commented 3 years ago

@wonderlandpark Can you file that as a separate issue please, under a feature request? :)

Added at #22