时间:2021-07-01 10:21:17 帮助过:24人阅读
可读的 HTTP方法支持(GET, PUT, POST, DELETE, HEAD, PATCH 和 OPTIONS)
可定制化的头文件
自动“智能”解析
自动负载系列化
基本认证
客户端证书验证
请求“模板”
示例代码:
$url = "http://search.twitter.com/search.json?q=" . urlencode('#PHP');$response = Request::get($url) ->withXTrivialHeader('Just as a demo') ->send(); foreach ($response->body->results as $tweet) { echo "@{$tweet->from_user} tweets \"{$tweet->text}\"\n";}
项目主页:http://www.open-open.com/lib/view/home/1437227778693