Update composer dependencies

This commit is contained in:
Kijin Sung 2017-06-29 23:39:23 +09:00
parent 49cc39e507
commit cbd324c35b
428 changed files with 17862 additions and 5885 deletions

0
vendor/rmccue/requests/examples/basic-auth.php vendored Executable file → Normal file
View file

View file

@ -0,0 +1,16 @@
<?php
// First, include Requests
include('../library/Requests.php');
// Next, make sure Requests can load internal classes
Requests::register_autoloader();
// Say you need to fake a login cookie
$c = new Requests_Cookie('login_uid', 'something');
// Now let's make a request!
$request = Requests::get('http://httpbin.org/cookies', array('Cookie' => $c->formatForHeader()));
// Check what we received
var_dump($request);

View file

@ -0,0 +1,20 @@
<?php
// First, include Requests
include('../library/Requests.php');
// Next, make sure Requests can load internal classes
Requests::register_autoloader();
// Say you need to fake a login cookie
$c = new Requests_Cookie_Jar(['login_uid' => 'something']);
// Now let's make a request!
$request = Requests::get(
'http://httpbin.org/cookies', // Url
[], // No need to set the headers the Jar does this for us
['cookies' => $c] // Pass in the Jar as an option
);
// Check what we received
var_dump($request);

0
vendor/rmccue/requests/examples/get.php vendored Executable file → Normal file
View file

0
vendor/rmccue/requests/examples/multiple.php vendored Executable file → Normal file
View file

0
vendor/rmccue/requests/examples/post.php vendored Executable file → Normal file
View file

0
vendor/rmccue/requests/examples/session.php vendored Executable file → Normal file
View file

View file

@ -0,0 +1,17 @@
<?php
// First, include Requests
include('../library/Requests.php');
// Next, make sure Requests can load internal classes
Requests::register_autoloader();
// Define a timeout of 2.5 seconds
$options = array(
'timeout' => 2.5,
);
// Now let's make a request to a page that will delay its response by 3 seconds
$request = Requests::get('http://httpbin.org/delay/3', array(), $options);
// An exception will be thrown, stating a timeout of the request !