samvermette.com

SEP 20, 2011

SVHTTPRequest

As always, I’m continuously exploring new ways to abstract these classes lots of us use every day. You might have noticed it with SVProgressHUD: I really think less is more (who doesn’t anyway). In a world where we keep hearing that ASIHTTPRequest sucks, transposing that mindset to a class that makes RESTful requests was quite tempting.

Enter SVHTTPRequest, an uber-fast and straightforward way to make GET and POST requests. It is block-based, uses NSURLConnection and its only 3rd party dependancy is the excellent JSONKit. It even supports basic auth! But the best thing about it is how easy it is to use:

Head over to the github repository for the full brief.

EDIT: what a coincidence, ASIHTTPRequest’s dev is calling it a day.


hello@samvermette.com