phpDocumentor http
transfer
[ class tree: http ] [ index: http ] [ all elements ]

Class: WindHttpSocket

Source Location: /http/transfer/WindHttpSocket.php

Class WindHttpSocket

Class Overview

socket操作

Located in /http/transfer/WindHttpSocket.php [line 13]

AbstractWindHttp
   |
   --WindHttpSocket
Author(s): Information Tags:
Version:  $Id: WindHttpSocket.php 2973 2011-10-15 19:22:48Z yishuo $
Copyright:  ©2003-2103 phpwind.com
License:  http://www.windframework.com

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From AbstractWindHttp

AbstractWindHttp::$cookie
AbstractWindHttp::$data
AbstractWindHttp::$eno
AbstractWindHttp::$err
AbstractWindHttp::$header
AbstractWindHttp::$httpResource
AbstractWindHttp::$instance
AbstractWindHttp::$timeout
AbstractWindHttp::$url

Inherited From AbstractWindHttp

AbstractWindHttp::__construct()
声明受保护的构造函数,避免在类的外界实例化
AbstractWindHttp::buildArray()
以指定分隔符的形式来将数组转化成字符串
AbstractWindHttp::buildQuery()
构请查询字符串
AbstractWindHttp::clear()
请空数据,重新发送请求
AbstractWindHttp::close()
关闭请求
AbstractWindHttp::get()
get方式传值
AbstractWindHttp::getError()
取得http通信中的错误
AbstractWindHttp::getInstance()
获取http单例对象,对象唯一访问入口
AbstractWindHttp::open()
打开一个http请求
AbstractWindHttp::post()
发送post请求
AbstractWindHttp::request()
发送请求
AbstractWindHttp::requestByArray()
以数组格式请求
AbstractWindHttp::resonseLine()
响应用户请求,只返回一行数据
AbstractWindHttp::response()
响应用户的请求
AbstractWindHttp::send()
发送请求底层操作
AbstractWindHttp::setCookie()
设置cookie
AbstractWindHttp::setCookies()
批量设置要传送的cookie
AbstractWindHttp::setData()
设置data
AbstractWindHttp::setDatas()
批量设置要传送的数据
AbstractWindHttp::setHeader()
设置http头
AbstractWindHttp::setHeaders()
批量设置http头
AbstractWindHttp::setUrl()
设置url
AbstractWindHttp::__clone()
防止克隆

Inherited From AbstractWindHttp

AbstractWindHttp::GET
AbstractWindHttp::POST
AbstractWindHttp::_COOKIE
AbstractWindHttp::_DATA
AbstractWindHttp::_HEADER

[ Top ]
Method Summary
static void   getInstance()  
WindHttpSocket   __construct()  
void   __destruct()  
void   close()  
void   get()  
void   getError()  
void   open()  
void   post()  
void   request()  
void   requestByArray()  
void   resonseLine()  
void   response()  
void   send()  

[ Top ]
Methods
static method getInstance  [line 153]

  static void getInstance( [ $url = '']  )

Parameters:
   $url: 

API Tags:
Access:  public


Redefinition of:
AbstractWindHttp::getInstance()
获取http单例对象,对象唯一访问入口

[ Top ]
Constructor __construct  [line 20]

  WindHttpSocket __construct( [ $url = ''], [ $timeout = 5]  )

Parameters:
   $url: 
   $timeout: 

API Tags:
Access:  protected


Redefinition of:
AbstractWindHttp::__construct()
声明受保护的构造函数,避免在类的外界实例化

[ Top ]
Destructor __destruct  [line 160]

  void __destruct( )


API Tags:
Access:  public


[ Top ]
close  [line 84]

  void close( )


API Tags:
Access:  public


Redefinition of:
AbstractWindHttp::close()
关闭请求

[ Top ]
get  [line 110]

  void get( [ $url = ''], [ $data = array()], [ $header = array()], [ $cookie = array()], [ $option = array()]  )

Parameters:
   $url: 
   $data: 
   $header: 
   $cookie: 
   $option: 

API Tags:
Access:  public


Redefinition of:
AbstractWindHttp::get()
get方式传值

[ Top ]
getError  [line 94]

  void getError( )


API Tags:
Access:  public


Redefinition of:
AbstractWindHttp::getError()
取得http通信中的错误

[ Top ]
open  [line 27]

  void open( )


API Tags:
Access:  public


Redefinition of:
AbstractWindHttp::open()
打开一个http请求

[ Top ]
post  [line 100]

  void post( [ $url = ''], [ $data = array()], [ $header = array()], [ $cookie = array()], [ $option = array()]  )

Parameters:
   $url: 
   $data: 
   $header: 
   $cookie: 
   $option: 

API Tags:
Access:  public


Redefinition of:
AbstractWindHttp::post()
发送post请求

[ Top ]
request  [line 43]

  void request( $name, [ $value = null]  )

Parameters:
   $name: 
   $value: 

API Tags:
Access:  public


Redefinition of:
AbstractWindHttp::request()
发送请求

[ Top ]
requestByArray  [line 50]

  void requestByArray( [ $request = array()]  )

Parameters:
   $request: 

API Tags:
Access:  public


Redefinition of:
AbstractWindHttp::requestByArray()
以数组格式请求

[ Top ]
resonseLine  [line 77]

  void resonseLine( )


API Tags:
See:  response()
Access:  public


Redefinition of:
AbstractWindHttp::resonseLine()
响应用户请求,只返回一行数据

[ Top ]
response  [line 66]

  void response( )


API Tags:
Access:  public


Redefinition of:
AbstractWindHttp::response()
响应用户的请求

[ Top ]
send  [line 120]

  void send( [ $method = self::GET], [ $options = array()]  )

Parameters:
   $method: 
   $options: 

API Tags:
Access:  public


Redefinition of:
AbstractWindHttp::send()
发送请求底层操作

[ Top ]

Documentation generated on Fri, 30 Mar 2012 11:43:35 +0800 by phpDocumentor 1.4.4