httparty icon indicating copy to clipboard operation
httparty copied to clipboard

Add party foul mode

Open jnunemaker opened this issue 2 years ago • 1 comments

Idea: add some option that wraps common net/http errors and raises a HTTParty::Foul error.

Maybe:

HTTParty.get(..., foul: true)

I could also see taking it way too far and somehow naming this related to a red solo cup.

https://twitter.com/jnunemaker/status/1717667960628695148 https://x.com/_swanson/status/1717691501008871488?s=20

jnunemaker avatar Oct 27 '23 00:10 jnunemaker

If you party, you must party hard. But not too hard that you break your mother's nice lamp...

swanson avatar Oct 27 '23 00:10 swanson

@jnunemaker I can take a crack at this if this is still open to work on

ashishra0 avatar Mar 15 '25 06:03 ashishra0

Yep!

jnunemaker avatar Mar 15 '25 15:03 jnunemaker

Done. https://github.com/jnunemaker/httparty/blob/main/examples/party_foul_mode.rb

jnunemaker avatar Mar 27 '25 13:03 jnunemaker