Class: WindHttpStream
Source Location: /http/transfer/WindHttpStream.php
Class WindHttpStream
Inherited Properties, Constants, and Methods
Methods
static void getInstance(
[
$url = '']
)
|
|
Parameters:
API Tags:
See: | getInstance() |
Access: | public |
Redefinition of:
- AbstractWindHttp::getInstance()
- 获取http单例对象,对象唯一访问入口
void get(
[
$url = ''], [
$data = array()], [
$header = array()], [
$cookie = array()], [
$option = array()]
)
|
|
Parameters:
|
$url: |
|
|
$data: |
|
|
$header: |
|
|
$cookie: |
|
|
$option: |
|
API Tags:
Redefinition of:
- AbstractWindHttp::get()
- get方式传值
void post(
[
$url = ''], [
$data = array()], [
$header = array()], [
$cookie = array()], [
$option = array()]
)
|
|
Parameters:
|
$url: |
|
|
$data: |
|
|
$header: |
|
|
$cookie: |
|
|
$option: |
|
API Tags:
Redefinition of:
- AbstractWindHttp::post()
- 发送post请求
void send(
[
$method = self::GET], [
$options = array()]
)
|
|
Parameters:
API Tags:
Redefinition of:
- AbstractWindHttp::send()
- 发送请求底层操作
void setWrapper(
[string
$wrapper = self::HTTP]
)
|
|
设置通信协议
Parameters:
API Tags:
|
|