Skip to content

Instantly share code, notes, and snippets.

@robzlabz
Created June 30, 2020 04:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robzlabz/3564b6acdd8fbe578f475692cf7a364e to your computer and use it in GitHub Desktop.
Save robzlabz/3564b6acdd8fbe578f475692cf7a364e to your computer and use it in GitHub Desktop.
<?php
// set timeout
Http::timeout($second)->get('...');
// retry
Http::retry($times, $wait)->post('...');
// throw
Http::post('...')->throw()->json();
// debug
Http:withOptions(['debug' => true])->get('...')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment