Skip to content

Instantly share code, notes, and snippets.

@robzlabz
Created June 30, 2020 04:42
Show Gist options
  • 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