nategood/httpful — pull request #60 by stewsnooze (2012-10-11 17:48:54+00:00)
Title: Added timeout method to be able to timeout http calls

Added the timeout method and integrated it in to _curlPrep so that code like

$response = \Httpful\Request::$method($uri)
->authenticateWith($username, $password)
->sendsJson()
->expectsHtml()
->body(json_encode($data))
->timeout(1)
->send();

only waits for the amount specified in the timeout function