bessey / bt-elixir

Learning Elixir via building a BitTorrent client
3 stars 1 forks source link

Jason is faster than HttpPoision #5

Open mpope9 opened 4 years ago

mpope9 commented 4 years ago

https://github.com/michalmuskala/jason

has the same function names, easy to sub in.

Or if you wanna get crazy https://github.com/yjh0502/rjs

bessey commented 4 years ago

I'm confused, there's no JSON in the app. Are you mixing up HTTPoison with Poison?

I did though think HTTPoison was heavy handed and have switched to Tesla, a nice wrapper for Hackney.

Matt

On Sat, 25 Jan 2020 at 23:39, Matthew Pope notifications@github.com wrote:

https://github.com/michalmuskala/jason

has the same function names, easy to sub in.

Or if you wanna get crazy https://github.com/yjh0502/rjs

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bessey/bt-elixir/issues/5?email_source=notifications&email_token=AAFM42HRIR3PBG7IC2Z23I3Q7TET7A5CNFSM4KLTVOA2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IIW7K7Q, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFM42AK43ZT3AJ5RCXIFWDQ7TET7ANCNFSM4KLTVOAQ .

mpope9 commented 4 years ago

Oh I understand, I thought you were parsing Json with it. My bad. Hackney is super dep heavy, check this bad boy out https://github.com/appcues/mojito

We're using Mint, which Mojito is based off of where I work.