Skip to content

wangliangl/com-ofashion-http-rpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages