library rpc
ofashion http client library
ofashion/rpc
ofashion http client library
- Monday, April 9, 2018
- by wangliangl
- Repository
- 1 Watchers
- 2 Stars
- 3 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 200 % Grown
com-ofashion
This is a private warehouse service, feel free to use, problems need to be resolved
Test code
$ser = array(
'baseUri' => 'http://domain.com.',
'route' => '/foo/bar',
'format' => 'json', //option def : json
'timeout' => 1, //option def : 5
'connectTimeout' => 5, //option def : 5
'debug' => true, //option def : false
'headers' => array() //option
);
$input = array('no_check' => 1); //option def : array
$options = array(
'httpMethod' => 'get', //option def : post
// 'requestId' => 123, //option def : rand
);
$a = new \Ofashion\Http\OfashionHttp(array('userId' => 12312)); //option userId def ""
$res = $a->call($ser, $input, $options);
print_r($res);
dev-master
9999999-dev
ofashion http client library
Sources
Download
MIT
The Requires
by
wangliangliang
ofashion